tags:

views:

77

answers:

2

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 ?

+1  A: 

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.

Jaxidian
it worked thx !! anyway can you explain why it happens ?
Yassir
I would love an explanation too! That was driving me crazy the other day.
Jon
Jaxidian
An empty div doesn't take up any space, therefore doesn't count as something that needs 'spacing from' using margin
adam
@Yassir: If this fixes the issue for you, could you mark it as answered so it doesn't show up in the Unanswered Questions list?
Jaxidian
+1  A: 

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.

Jon