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?
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?