...

View Full Version : How to change the color of the borders of a table?



ze0nyx
02-07-2005, 04:10 PM
I have a standard HTML table. How can I modify the color of it's borders (inner and outer)?

chilipie
02-07-2005, 04:27 PM
One way:


td {
border: 1px solid #000; /* Will make all table cells have a 1px solid black border. */
}


You could change that if you want to give the other table elements a border:


table {
border: 1px solid #f00; /* Will make all tables have a 1px solid red border. */
}
tr {
border: 1px solid #00f; /* Will make all table rows have a 1px solid blue border. */
}

ze0nyx
02-08-2005, 09:16 AM
Thank you.

chilipie
02-08-2005, 09:15 PM
Any time :) .



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum