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; } 

http://jsfiddle.net/jybfc/

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

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -