Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery: IE8 margin collapses when using slideUp()/slideDown()

I've uploaded a test file here:

http://dl.dropbox.com/u/2201804/IE8test.html

If you click on the "Click me" divs, you'll see the "Feedback" divs appear using slideDown(). Clicking a "Click me" in another box slides the currently showing feedback up and slides down the appropriate feedback.

In IE8, after the slideUp()/slideDown() actions are complete, the margin between the boxes collapses.

Is this a problem with jQuery's animation or a display bug in IE8?

like image 789
theJBRU Avatar asked Mar 25 '10 15:03

theJBRU


1 Answers

overflow: hidden;

should do the work :)

like image 107
c97 Avatar answered Sep 20 '22 19:09

c97