PDA

View Full Version : Thickness and colour of table lines problem


liljuvu73
09-25-2009, 11:28 AM
Hi There,

Could anyone tell me what css property controls the width and colour of table lines.

The border of a table seems easy enough to control with the border property but I cant for the life of me work out how to control the width and colour of the lines that seperate the individual cells.

Ideally i would like the whole table to have 1px black lines throuughout.

Any help or advice would be appreciated

Thanks

James

Corrosive
09-25-2009, 12:20 PM
td {border: 1px solid #000;}

domedia
09-25-2009, 06:25 PM
You also need to collapse the borders.
I usually do something like this:
table, td {
border 2px solid #ccc;
border-collapse: collapse;
}

liljuvu73
09-29-2009, 04:05 PM
Thankyou for your help guys