I\'m using the jQuery slideToggle function on a site to reveal \'more information\' about something. When I trigger the slide, the content is gradually revealed, but is loc
I had this exact same problem but only when the hidden element was a But the problem with using I changed my hidden element from a EDIT: On a new site I was determined to use a hidden 1) When 2) When the 3) Removing all margins & padding from the elements within the hidden overflow:hidden;.
overflow:hidden; is that the upper & lower spacing created by the paragraph element was suddenly removed thereby making the layout ugly. and removed the overflow:hidden;... it worked without messing up the layout and the jumping problem did not return.
div contains p or ul or similar the jumping occurs.div only contains text, a links and/or images, no jumping animation.div clears up the issue. Other things like line-breaks can be added to compensate for the lack of padding & margins... not ideal but the animation is smooth again.