html - Header not showing up? -
so pretty mind boggled on why header isn't showing up. i've tried everything. messed on bit when typing out, still should've shown itself.
thanks in advance.
html
<body> <div class="header"> <div id="logo"> <img src="../images/logo.png"> </div> </div> </body> </html>
css
body { background-color:#2a2b2d; margin:0px; padding:0px; } .header { background-color:#2c2e31 border-bottom:#000000 2px solid; top repeat-x; height:182px; }
you should use
width:100%;
if want width same size page. forgot ";" after background-color.
body { background:#2a2b2d; margin:0px; padding:0px; } .header { background:#2c2e31; border-bottom:#000000 2px solid; width: 100%; height:182px; }
Comments
Post a Comment