View Full Version : White space under IE Div, not FF

02-24-2009, 07:27 PM
I have a simple error with a white space under a DIV to another DIV in IE, the code is as follows;

font-family:Arial, Helvetica, sans-serif;
margin: 0px auto;
padding: 0px auto;

margin:150 0 0 0;
border: 0px auto;
height: auto;

margin: 0px auto;
padding: 0px auto;
border: 0px auto;

If you could help it would be a big thanks, been looking around the internet for awhile now!

02-24-2009, 07:38 PM
Hello Abakiz,
A lot of your CSS is wrong there. Take a look at the link about validating CSS in my sig below.

margin: 0 auto; centers things by making the left/right margins auto. Typically, body is the full width of the browser window so there is nothing to center. In other words, that line does not belong in the styling for the body tag.

padding: 0 auto; No such thing as auto padding.
same for border.

Your #login has margin:150 0 0 0; 150 is a measurement but you have to specify what units your measuring in. The browser sees that and says, "150 what?" Use px, em, % ...

Oh yes, for your whitespace ... you will need to post your html as well. Seeing only the CSS is not enough.
A link to the test site would be best but you can post your code here if there is no test site.
USE the [code] TAGS PLEASE! It puts your code in a scrolling box that greatly helps the readability of your post.