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

    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


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

    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

    that was it..thanks....

Share This Page