I have two DIVs that need to occupy the same space on the page. The back DIV has some form elements and I am allowing the user to slide the front DIV in order to access the back DIV.
The problem is, the content below the front DIV is moving up on top of the back DIV. How can I fix this?
Here is an example of what I am doing now.
Thanks
Sheridan
You need to set the height of your wrapper:
When you “slideUp” your
#frontdiv, your#wrapperdiv is losing its height.See it working here: http://jsfiddle.net/7DFfa/4/
You’ll also need to toggle the
z-indexof your#backdiv so that the form elements can be accessed: http://jsfiddle.net/7DFfa/5/Alternatively, you could toggle both divs: http://jsfiddle.net/7DFfa/7/