开发者

how can i make this header 100% wide?

开发者 https://www.devze.com 2023-01-31 04:55 出处:网络
I want to make this header 100% wide.I tried this on jsfiddle, but there\'s still some more margin left on the left and right. 开发者_如何学Python

I want to make this header 100% wide. I tried this on jsfiddle, but there's still some more margin left on the left and right.

开发者_如何学Python

CSS:

#header {
   background: url("../img/top-bg.png") repeat-x scroll 0 0 #3D668F;
   height: 44px;
 }

HTML:

<div id="header"></div>

Fiddle: http://www.jsfiddle.net/VgfaA/

jsfiddle has thier header 100% wide, so thats an good example!!! I even tried to put width:100% but it still doesn't work


I have added

html, body { padding:0;margin:0; }

:) Nice site

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号