1. Welcome to the new MacRumors forums. See our announcement and read our FAQ

floating div does not stay absolute...

Discussion in 'Web Design and Development' started by pelsar, Dec 20, 2010.

  1. macrumors regular

    #1
    i have a floating div that contains the menu system...and its supposed to remain static with in the container, but it doesn't. Move the website to the right, and the menu remains static to the screen but not to the webpage

    http://www.spinnerdesign.co.il/_clients/girdon/

    how to make the menu div remain static relative to the page?
     
  2. macrumors 6502

    #2
    since you didn't specify where the absolutely positioned div is relative to, it's relative to the browser window. Add position:relative; to the container div and that should fix your issue.
     
  3. macrumors regular

    #3
    that was it..thanks....
     

Share This Page