View Full Version : ie global margin issue

05-25-2007, 11:09 AM
hi there!

I am designing a page with a div, which extends from the very left of the page to the very right.

here is the relevant code:

#top {

For Firefox it was sufficient to apply a margin-left of -10px and to increase the width, but IE simply ignores these parameters! The <div> has a margin of approx. 12px left AND right. I tried to increase the negative margin and to set the body margins, but nothing worked. The only possibility was the absolutely positioning of the <div>, which destroys the rest of the page.

Is there a global margin-value for IE? If yes, is it possible to override it?

05-25-2007, 02:57 PM
Set the padding and margins of your body, html and div to 0 and then see what happens from there.

html, body, #top {
padding: 0;
margin: 0;

05-25-2007, 03:09 PM
yes, that does the job! very simple, I should have known for myself!:o

thank you!