Hey all, I have the height for a div set to 100% and the background color set to white. For some reason (in all browsers), the background color is always 100% height, even when the content overflows and the page scrolls. The background color only extends to the height of the window.
Relevant code:
css:HTML Code:<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <link rel="stylesheet" href="styles/layout.css" type="text/css" /> <title>Site</title> </head> <body> <div id="container"> <div id="left"> </div> <div id="right"> <br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /> </div> </div> </body> </html>
Code:@charset "utf-8"; html, body { width: 100%; height: 100%; min-width: 760px; margin: 0px; color: #440B00; font-family: Arial, Helvetica, sans-serif; background: #440B00; } #container { position: absolute; width: 760px; height: 100%; left: 50%; margin-left: -380px; } #left { float: left; width: 160px; height: 100%; background: #FFD084; } #right { float: left; width: 600px; height: 100%; background: #FFFFFF; }



Reply With Quote


Bookmarks