I’m using jQuery’s slideToggle on an unordered list in order to make it expand menu items. The problem is that this effect makes all of my div’s slide down along with it. How can I make the rest of my document’s div’s unaffected by slideToggle?
Share
What you’re actually asking is not very clear from your question. This answer is based on your comment on the question. The reason other elements are pushed down when the hidden element slides down is that that’s just the way block elements in HTML work. You will need to change the
positionof your element, for example, toposition: absolute. Here’s an example to get you started.