floating div does not stay absolute...

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

  1. macrumors regular

    Joined:
    Apr 29, 2008
    Location:
    israel
    #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

    Joined:
    Jun 8, 2009
    #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. thread starter macrumors regular

    Joined:
    Apr 29, 2008
    Location:
    israel
    #3
    that was it..thanks....
     

Share This Page