BrianM Posted April 29, 2008 Share Posted April 29, 2008 Is there any trick to using background-color with tables, because it doesn't seem to want to work for me. Here is an example of how I am writing my code, maybe somebody can tell me what I'm doing wrong and point me in the right direction. <table class="login"> ... </table> and in my style sheet linked to the page I have something like table.login { background-color: #FFFFFF; } Thanks for any help/advice. Link to comment https://forums.phpfreaks.com/topic/103497-table-background-color-with-css/ Share on other sites More sharing options...
RichardRotterdam Posted April 30, 2008 Share Posted April 30, 2008 that is the correct way to add a background color to a table maybe the stylesheet isnt linked correctly try changing the color see if it makes a difference or use a style tag inside the same page Link to comment https://forums.phpfreaks.com/topic/103497-table-background-color-with-css/#findComment-530218 Share on other sites More sharing options...
GameYin Posted April 30, 2008 Share Posted April 30, 2008 Add that to tr's and td's as well. I used to have that problem www.gameyin.com The left nav table. Look at the CSS and HTML for it. Link to comment https://forums.phpfreaks.com/topic/103497-table-background-color-with-css/#findComment-530303 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.