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 MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

valid HTML 4.01 table border color

Status
Not open for further replies.

PeDa

Technical User
Oct 10, 2002
227
NL
Hello, I am trying to make my website valid HTML 4.01. Use of BORDERCOLOR in tables is apparently not valid HTML; one has to use CSS. How do I do this, and do real world browsers support this?

Best wishes
 
I know IE and Netscape support these, and I would be shocked if Opera didn't.

<td style=&quot;border-color:blue;&quot;>
You can add this to each cell you want a border around (as well as to the table itself--not the tr), or you can make a class.

<style>
.tdborder{
border:blue;
}
</style>

and then in every td or table you want to have a border around, you can add class=&quot;tdborder&quot;. Another way is like this:

<style>
table{
border:1px solid blue;
}
td{
border:1px solid blue;
}
</style>

This will put the border around EVERY table and td without any additional info needed.

Rick
 
Rick,

>This will put the border around EVERY table and td without
>any additional info needed.

Fantastic... and so easy. Many thanks ;-)

Peter
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top