I need to create a simple navigation system using <div>
elements as individual pages. The goal is to have "next" and "back" buttons that allow users to switch between these pages with a smooth fade-in and fade-out effect, all powered by jQuery. However, styling the divs with position:absolute
causes them to overlay other elements on the page, which isn't ideal.
Is there a way to make these <div>
elements appear stacked on top of each other without interfering with the layout of surrounding content? I've tried containing them within a relative position element, but this approach led to overflow issues.
Edit:
For reference, here is a basic fiddle showcasing my current implementation: http://jsfiddle.net/9AXS4/4/
Apologies for any confusion between $
and jQuery
. I've been experimenting with jQuery extensively since implementing jQuery.noConflict()
.