Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Tables and borders

Featured Replies

Hi all

 

Can anyone let me know if it's possible to have some cells in a table have a border, but some cells to not have a border.

 

If it is possible, is there anywhere that I can see some examples of html codes that will allow me to do this?

 

Thanks

Kerstey

lets say this is one cell :

<tr><td width=200>something 1</td><td width=200></td></tr>

 

you just add something like this :

<tr><td width=200 style="border:#000 solid;">something 1</td><td width=200></td></tr>

 

to every cell you wanna.

 

have a nice day.

you can do it in css like this:

 

.table-border {border: 1px solid #bac172;}

 

then in the table cells you want to have with borders you would add class="table-border" like this:

 

<td class="table-border"> data here </td>

 

 

 

Try not to use inline styling css as that totally defeats the point of css.

  • Author
Can you use a CSS class on the TD?

 

I'm not sure. I'm only a beginner and not all that hot on CSS yet!

 

Thanks for your help :)

  • Author
lets say this is one cell :

<tr><td width=200>something 1</td><td width=200></td></tr>

 

you just add something like this :

<tr><td width=200 style="border:#000 solid;">something 1</td><td width=200></td></tr>

 

to every cell you wanna.

 

have a nice day.

 

Thanks! :)

  • Author
you can do it in css like this:

 

.table-border {border: 1px solid #bac172;}

 

then in the table cells you want to have with borders you would add class="table-border" like this:

 

<td class="table-border"> data here </td>

 

 

 

Try not to use inline styling css as that totally defeats the point of css.

 

Oooh, thanks! I'll give that a go :)

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.