Results 1 to 2 of 2

Thread: Floating Menu Script contained in a DIV?

  1. #1
    Join Date
    Apr 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Floating Menu Script contained in a DIV?

    1) Script Title: Floating Menu Script

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...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.

  2. #2
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    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.
    - Mike

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •