css - Why do i have unwanted margin on top of my html page? -


i keep getting unwanted top margin , cant remove it, tried everything, affected 1 of other projects well, find solution. please heres html:

<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>joy designert</title> <link href="style1.css" rel="stylesheet" type="text/css" /> </head>  <body topmargin=0 marginheight=0> <div id="wrapper"> <div id="topbanner"><div class="container"><h2>top banner content</h2></div></div> <div id="nav"><div class="container">navigation text<?include ("navigation.php");?></div></div> <div id="featured"><div class="container"></div></div> <div id="info"><div class="container">test</div></div> <div id="support"><div class="container">test</div></div> <div id="footer"><div class="container">testing footer<?include ("footer.php");?></div></div> </div> </body> </html> 

and heres css content:

   @charset "utf-8"; /* css document */ html {     margin:!important 0px;     padding:0px; } body {     margin-top:!important 0px;     margin-left:0px;     margin-right:0px;     margin-botton:0px;     padding:0px;     border:none;     color: #292929;     font-family: arial,helvetica,sans-serif;     font-size: 81.25%;  } #wrapper {     margin:0px;     width:1000px;     height:auto;  } .container {     width:900px;     margin:auto;  } #topbanner{     background-image:url(images/scr_gray-bkgd.png);     background-repeat:repeat-x;     height:44px;     width:100%; } #nav{     height:72px;     width:100%;     padding     color:#666666;     background-color: #f5f5f5;     border-bottom: 1px solid #ffffff;     box-shadow: 0 -5px 5px #5a595d;     color: #666666;     font-weight: bold;     height: 72px; } #featured {     min-height:420px;     width:100%;     background: url(none) no-repeat scroll center top #ececec;     border-bottom: 1px solid #ffffff; }  #info{      background: url(images/gradient-bg.png);     background-repeat:repeat-x;     height: 256px;     width: 100%;  } #support{     background-color: #f5f5f5;     border-top: 1px solid #ffffff;     box-shadow: 0 5px 5px #5a595d;     height:55px;     width:100%;     } #footer{     width:100%;     height:150px;     background-image:url(images/scr_gray-bkgd.png);     background-repeat:repeat;  } 

#topbanner h2{     margin:0px; } 

this should solve ;)


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -