Forum Moderators: not2easy

Message Too Old, No Replies

Css and Background - Shows through tables.

         

katherinez

3:23 pm on Mar 18, 2008 (gmt 0)

10+ Year Member



Sorry for such a BASIC question! My site is php and I use a style sheet. My background is white and I want to change it to a graphic. I have figured that out with my css file... BUT! My background shows through all the text on the site!

My text is in three tables, with all styles defined in the css file. I tried code to make the background of one of those tables white to see if that would fix it, but it still looked the same. I might have done the code wrong, obviously ;)

The "look" I want is my "graphic" background to only show on the sides and top - and for my tables to remain white with no background showing through. This is so basic it's embarrassing, so thank you in advance...

Is there a standard code I can put in the .css to make the tables white, keeping the background hidden?

Xapti

4:19 pm on Mar 18, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



table{color:white} should work
you can also try something table, td, tr{color:white} if it doesn't work.

Most people would probably recommend you stop using tables for web layout too though.

jelle76

4:44 pm on Mar 18, 2008 (gmt 0)

10+ Year Member



I do not use tables all that much, but wouldn't it be:

table{ background-color:white; }

swa66

9:34 pm on Mar 18, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member




table{color:white} should work
you can also try something table, td, tr{color:white} if it doesn't work.

Most people would probably recommend you stop using tables for web layout too though.


Try "background-color:white", "color:white" sets the text to white.

katherinez

11:55 pm on Mar 18, 2008 (gmt 0)

10+ Year Member



You are all awesome... worked like a charm! THANKS!