Random Posted August 18, 2009 Share Posted August 18, 2009 On my site I have a gray background covering the center of the page. I have it set as the background color in a main table. The problem is that it does not extend all the way to the top or bottom. I'm not sure what I can do. If anybody have a suggestion I would really appreciate the help.http://www.mikeweissonline.com/ Link to comment Share on other sites More sharing options...
Synook Posted August 18, 2009 Share Posted August 18, 2009 Set it as the body's background. Link to comment Share on other sites More sharing options...
dsonesuk Posted August 18, 2009 Share Posted August 18, 2009 validating the page, will show where you are going wrong, at quick glance missing <tr>, <br /> inserted where it is not allowed.http://validator.w3.org/ spotting 70 errors, including above. Link to comment Share on other sites More sharing options...
Random Posted August 19, 2009 Author Share Posted August 19, 2009 Set it as the body's background.Well the bg is meant to be a dark gray, but I wanted the center to be a lighter gray.validating the page, will show where you are going wrong, at quick glance missing <tr>, <br /> inserted where it is not allowed.http://validator.w3.org/ spotting 70 errors, including above.I have found by setting leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" I got one page to reach the top, but the others don't. It may be because of validation you mentioned.And one more thing, how can I make a table, td, or tr tags stretch at the bottom to fill in the rest of the page automatically without having to set a certain height? Link to comment Share on other sites More sharing options...
Ingolme Posted August 19, 2009 Share Posted August 19, 2009 leftmargin, topmargin, marginwidth and marginheight are not valid attributes in HTML.You must learn CSS if you want to style your pages correctly. Link to comment Share on other sites More sharing options...
Random Posted August 19, 2009 Author Share Posted August 19, 2009 Well I got it to look the way I want, now just got to repeat it. Thanks to everyone for your help leftmargin, topmargin, marginwidth and marginheight are not valid attributes in HTML.You must learn CSS if you want to style your pages correctly.I know, I really need to reteach css to myself, but I'm a bit strap for time on this Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.