css - layout problems with site -
i have problem site. when resize window stays still , doesn't move, window crosses on everything.
here images epxlain bit better.. hopefully.
this site in normal window - http://imageshack.us/photo/my-images/407/problem2a.jpg/
and when resized - http://imageshack.us/photo/my-images/696/problemim.jpg/
can tell me problem is? layout work website - http://www.thisoldbear.com/
next time, please add html , css code question makes easier , you'll more accurate answers.
by looking @ pics feeling you've added left side padding/margin (150px something?) try , center content, when should have added container div(s)
margin: 0 auto;
this center content , keep centered when resize window
update
html
<div id="container"> <header> <div id="logo"></div> <nav> <a href="#">home</a> <a href="#">about</a> </nav> </header> </div> <div class="content"> ... </div>
css
body { background: url(../../core/images/bg.png); font-family: 'pontano sans', sans-serif; padding: 0; margin: 0; } #container { width: 100%; height: 80px; background: url(../../core/images/header.png); } #content, header { position: relative; width: 800px; margin: 0 auto; } #logo { position: absolute; top: 0; left: 0; width: 124px; height: 171px; background: url(../../core/images/logo.png); } nav { padding: 0; margin: auto 0px auto 150px; } nav { text-decoration: none; font-size: 17px; color: #f4f4f4; outline: none; margin: 0px 0px 0px 50px; } nav a:hover { text-decoration: underline; }
Comments
Post a Comment