table background colors (Full Version)

All Forums >> [Web Development] >> Cascading Style Sheets



Message


Joe Hussar -> table background colors (2/8/2007 8:53:08)

Hello...........

I have just begun using ccs style sheets. I can't find a way to specify the background color on a new table (to be placed on the page).

Can anyone tell me if there is a way to do that?

Thanks!




rdouglass -> RE: table background colors (2/8/2007 10:27:02)

I use CSS similar to this:

.tblMain ( background-color: #FFFFFF;}

and the table markup looks like:

<table class="tblMain">

That help any?




swoosh -> RE: table background colors (2/8/2007 10:27:13)

TABLE {background: COLORHERE;}

other properties of a table would be like so:

TR {background-color: COLORHERE;}
TH {background-color: COLORHERE;}
TD {background-color: COLORHERE;}





Joe Hussar -> RE: table background colors (2/8/2007 15:01:59)

Thanks................ I'll see what I can do with that.

Appreciate your help.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.046875