DuncansOneLove
04-15-2004, 09:00 PM
Hiya,
Don't suppose anyone knows the attributes for tables that you put in your CSS?
Don't suppose anyone knows the attributes for tables that you put in your CSS?
|
View Full Version : Table attributes in CSS DuncansOneLove 04-15-2004, 09:00 PM Hiya, Don't suppose anyone knows the attributes for tables that you put in your CSS? kittycat 04-15-2004, 09:24 PM For font etc you can include it under one heading like this... table, td { font-size:; color:; etc...} If you want to specify widths and/or heights, you should probably use separate ids #td1 { width:#; } and then <td id="td1"> I think margin would the equivalent of cellspacing, and padding the equivalent of cellpadding. I don't believe rowspan and colspan can be included in CSS... But other than that, pretty much any table attributes are what you might expect them to be or are used in other objects. Not sure if that's exactly what you wanted... DuncansOneLove 04-17-2004, 01:54 PM Ok...That's helped a little but i don't know how i'd change the td bg color in css. I have alot of tables because i have my updates in them so it's going to take ages updating them unless i can use css kittycat 04-17-2004, 03:54 PM If you want all of them to have the same background colour, include background-color: #colour to the TD section of CSS. If you want separate ones to be different colours, use the IDs for them. |