html - <body> doesn't reach at the top of the page -


baffled, html:

<!doctype html>  <html> <head>     <meta name="viewport" content="width=device-width" />     <title>welcome</title>      <link rel="stylesheet/less" type="text/css" href="/styles/compiledless.less" />     <script src="/scripts/js/less-1.5.0.min.js"></script> </head>     <body>         <div id="maincontentdiv">             <div>                 <h2>please log in</h2>                 <p>you must <a href="/account">log in</a> use.</p>             </div>         </div>     </body> </html> 

css this:

body {     background-color: #d5e6ed;     background-image: url("~/images/background.jpg");     background-position: center;     background-repeat: no-repeat;     color: #444444;     font-family: verdana,tahoma,arial,"helvetica neue",helvetica,sans-serif;     font-size: 71%;     margin: 0;     padding: 0; }  #maincontentdiv {     margin: 0 auto;     margin-top:0;     padding: 0;     width: 997px;     background-color:#fff; } 

i can't see wrong result <body> tag not flush top of browser window when inspect firebug.

there no other css, that's entirety of it.

working fiddle

h2{ margin:0; } 

Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -