Hannoun Yassir
Hannoun Yassir

Reputation: 21182

IE8 ignores margin-top any idea why?

i have two divs one floated to the left and the other to the right and after them i have added a div with style clear:both

after that i have an other div with a margin-top : 35px the margin is shown as expected in IE7 FF Chrome and opera but can't see it on IE8 any ideas ?

Upvotes: 1

Views: 1827

Answers (2)

Jon
Jon

Reputation: 6046

I had this problem the other day. I'm not sure why it is occurring and I am far from an expert on the topic but to solve it I added padding bottom to the floated divs and it gave the same effect I was looking for.

Upvotes: 1

Jaxidian
Jaxidian

Reputation: 13511

I can't tell from what you've posted but if the div giving you problems is empty, this could be an issue. If that is the case, try adding   into it.

Upvotes: 1

Related Questions