|
Css and Background - Shows through tables.
|
katherinez
#:3604123
| 3:23 pm on Mar. 18, 2008 (utc 0) |
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
#:3604182
| 4:19 pm on Mar. 18, 2008 (utc 0) |
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
#:3604216
| 4:44 pm on Mar. 18, 2008 (utc 0) |
I do not use tables all that much, but wouldn't it be: table{ background-color:white; }
|
swa66
#:3604527
| 9:34 pm on Mar. 18, 2008 (utc 0) |
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
#:3604638
| 11:55 pm on Mar. 18, 2008 (utc 0) |
You are all awesome... worked like a charm! THANKS!
|