PDA

View Full Version : floating div does not stay absolute...




pelsar
Dec 20, 2010, 05:07 PM
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?



manueld
Dec 20, 2010, 06:35 PM
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?

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.

pelsar
Dec 20, 2010, 10:55 PM
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.

that was it..thanks....