开发者

IE8 ignores margin-top any idea why?

开发者 https://www.devze.com 2022-12-25 10:10 出处:网络
i have two divs one floated to the left and t开发者_运维百科he other to the right and after them i have added a div with style clear:both

i have two divs one floated to the left and t开发者_运维百科he 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 ?


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消