PDA

View Full Version : Border on Cell in Table


stoneygossard
12-13-2006, 05:47 PM
Is it possible to just have a border around one cell in a table?If so how is this done please?

Stoney

domedia
12-13-2006, 06:05 PM
Yes, this is where CSS comes in handy.
<td style="border: 1px solid black;">content</td>

fwr1000
12-13-2006, 08:32 PM
Dom, fairly new to CSS so want to make sure I got your solution. This is an "inline CSS" as opposed to an internal or external style sheet. Is this correct?

If so, could one write a class CSS (internal or external) rule and then apply it only to that one cell in the table?

thnx
Fred

domedia
12-13-2006, 09:05 PM
Yes you're getting the hang of it :)