css - Horizontal space between divs -


i'm doing webpage school project , i've run problem.

i have div, contains header, , div horizontal navigation bar. between divs there gap. have read through code , can't find out why.

no matter seem nothing works.

i have set margin/padding 0px on elements without luck.

here code:

asp/html

   <html xmlns="http://www.w3.org/1999/xhtml"> <link href="stylesheet.css" rel="stylesheet" /> <head runat="server">     <title></title>     <asp:contentplaceholder id="head" runat="server">     </asp:contentplaceholder> </head> <body>     <form id="form1" runat="server">         <div id="wrapper">             <div id="header">                 <asp:image imageurl="_res/logo.png" runat="server" />                 </div><div id="menubar">                     <asp:image imageurl="_res/menubar.png" runat="server" />                 </div>                  <asp:contentplaceholder id="cphmain" runat="server">                 </asp:contentplaceholder>           </div>     </form> </body> </html> 

css

* {     margin: 0;     padding: 0; }  body {     background-color: #2e261e;     background-image:url(_res/sides.png);     background-repeat:repeat-x; }  #wrapper {     width: 960px;     margin-left:auto;     margin-right:auto; } #header {     margin:0px;   }  #menubar {     margin: 0;  } 

i have tried display:block, nothing.. sorry extremely poor phrased question.

the answer set line-height property of divs 0 in css file. have no clue line-height set originally, worked.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -