...

View Full Version : Weird space



Freduboy
06-30-2010, 06:08 PM
Take a look at this: http://frogle.webuda.com/beta/
There's this weird space on the sides and on top of the header :/




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



#header {
background-image:url('imgs/header.png');
background-repeat:repeat-x;
height:125px;
aling:top;
margin:0px;
paddign:0px;
}
#logo {
background-image:url('imgs/logo.png');
background-repeat:no-repeat;
width:193px;
height:54px;
margin:35px;
}

How can I get rid of the spaces?
Any help would be appreciated :)

SB65
06-30-2010, 07:01 PM
The top margin is coming from the 35px margin on #logo, and the left hand margin from the default margin on body - 8px in FF3.6 - remove this by setting all your padding and margins to 0 at the top of your css via:


*{margin:0;padding:0}

Try firebug (http://getfirebug.com/) for this sort of thing.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum