I have a menu built using divs, each section is composed by 2 divs (Title and content). The content is collapsed or expanded when the title is clicked, but on IE8 the space between the section divs is shrinking after expanding and collapsing a section.IE9, Chrome, and Firefox display everything correctly
This is how it looks, the first section is displaying correctly with the space below it, but on the rest the space is shrinked
The weird thing is if I resize the window, everything looks fine again
This is a sample of the code I’m using, and this is the jsfiddle
I hope somebody have solved the same issue. Thanks
Try this code:
There is an explanation of the problem here :
http://jqueryfordesigners.com/animation-jump-quick-tip/
Effectively, wrap each pair of title and content elements in a containing div, and then apply your padding to the bottom of that. Tested in IE7, IE8, FF, & Chrome