I wonder why I get vertical scrollbar in FF when viewing this simple example:
Code:html, body { width: 100%; height: 100%; margin: 0; padding: 0; } #main-container { width: 800px; margin: 50px auto; border: 1px solid black; }The div is not high enough to for a scrollbar to appear. How do I get rid of it?HTML Code:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" href="style.css" type="text/css" /> </head> <body> <div id="main-container"> bah </div> </body> </html>




Bookmarks