...

View Full Version : ie global margin issue



yeti
05-25-2007, 10: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 {
margin-left:-10px;
margin-top:130px;
width:110%;
height:100px;
}

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?

Pennimus
05-25-2007, 01: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;
}

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

thank you!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum