...

View Full Version : White padding to the left?



Latchy
06-30-2010, 07:34 PM
OK so, I'm designing a website but have come across a error.

http://i47.tinypic.com/jt5ox4.jpg

Do you see the white space to the left?
How can I get rid of it?

Here is the code I am using:


#header {
position: fixed !important;
background-image: url(http://i46.tinypic.com/fdvorm.png);
top: 0px;
height: 77px;
width: 100%;
background-repeat: repeat-x;

I have tried margin, padding and !important on the width, but no luck.

Thanks,
Latchy

SB65
06-30-2010, 07:37 PM
Need a bit more than that I think. Got a link to your page?

BoldUlysses
06-30-2010, 07:41 PM
Agree with SB65 that we need more info, but just for kicks, have you reset your browser default padding and margins? Try putting this at the beginning of your CSS:


* {
padding:0;
margin:0;
}

This clears out any default padding and margin that a browser assigns to an object.

Latchy
06-30-2010, 08:36 PM
That solved it, thanks :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum