Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

border in <TD>

Status
Not open for further replies.

jeanpaul

Technical User
Aug 13, 2000
20
0
0
SE
Can I have a border in just one td? How do I do that?

Thanks /Henrik
 
You could use CSS to apply a border to just one cell, with the style looking something like:

.cellwithborder { border: 2px #0000FF solid; }

And then in the cell just put:

<TD CLASS=&quot;cellwithborder&quot;>Content</TD>
 
You can also separate out the various attributes like this:
Code:
.goldcell { border-width:7; border-color:#bea422; background:#dfd490; border-style:ridge; }
This would give a gold cell with a wide dark ridge-style border.
Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top