cell border

User 27364 Photo


Registered User
9 posts

Is it possible to have table borders disabled but have one cell show a border ?
If so how do I do it ?
User 1948478 Photo


Senior Advisor
1,850 posts

You could try an in-line style for the particular cell you want a border around:

<td style="border:1px solid white;">
(adjust thickness, type and color to your liking...)
User 603315 Photo


Registered User
938 posts

You can do that with CSS as you can see by the graphic
http://i1131.photobucket.com/albums/m555/thenbman/borders.jpg only one part is with a border out of 4 cells, and that's only on the left.
The code is something like this, but there's many ways, this is just one:

<table border="0" width="60%" align="center">
<tr><!-- Row 1 -->
<td style = "border-left: solid; border-color: red;"> HELLO IM A TABLE WITH A LEFT BORDER</td><!-- Col 1 -->
<td>HELLO IM A TABLE ELEMENT WITHOUT A BORDER</td><!-- Col 2 -->
</tr>
<tr><!-- Row 2 -->
<td>I'm also borderless</td><!-- Col 1 -->
<td>I've got no border either, isn't that unfair</td><!-- Col 2 -->
</tr>
</table>

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.