SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Simple problem

  1. #1
    SitePoint Addict
    Join Date
    Aug 2005
    Location
    Lithuania, Europe
    Posts
    295
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Simple problem

    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;
    }
    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>
    The div is not high enough to for a scrollbar to appear. How do I get rid of it?

  2. #2
    SitePoint Addict
    Join Date
    Aug 2005
    Location
    Lithuania, Europe
    Posts
    295
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you, got it working.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •