April 9, 200917 yr 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
April 9, 200917 yr 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.
April 9, 200917 yr 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.
April 9, 200917 yr 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
April 9, 200917 yr 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!
April 9, 200917 yr 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