PDA

View Full Version : Floating Menu Script contained in a DIV?



csjc
04-27-2007, 05:10 AM
1) Script Title: Floating Menu Script

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/staticmenu.htm

3) Describe problem:
This script places the floating menu based on the borders of the current screen size, but I want it to always remain in a certain area of the page (there is a column that I want the div to float around in as I scroll up and down the page). This area is not docked to the right or left, so when I maximize my window, the div floats all the way to the right and out of context. Is there any way to constrain this moving menu into a DIV which holds the place where it should be? Or are there any other equivalent scripts out there? Thanks.

mburt
04-27-2007, 10:17 AM
That's because it uses position:absolute, which positions it outside of the page, so when elements have to scroll, it will simply be "over" everything. Try using position:relative.