crazyboybert
Programmer
HI all,
I need to position elements absolute on the page and prevent them from scrolling when the page is scrolled. The elements in question are all divs which are being positioned at the moment using
#divid{position:absolute; left:20px; top:50px;}
i have tried using position:fixed and am getting some very odd results.
most info i have found seems to indicate it should work. Does anyone have any experience using position:fixed and know what i need to do to get it working or wether there is another css property which can prevent an element from scrolling.
I am using IE6 to develop but will need version 4+ support for ns and ie when going live.
cheers for any help
rob
I need to position elements absolute on the page and prevent them from scrolling when the page is scrolled. The elements in question are all divs which are being positioned at the moment using
#divid{position:absolute; left:20px; top:50px;}
i have tried using position:fixed and am getting some very odd results.
most info i have found seems to indicate it should work. Does anyone have any experience using position:fixed and know what i need to do to get it working or wether there is another css property which can prevent an element from scrolling.
I am using IE6 to develop but will need version 4+ support for ns and ie when going live.
cheers for any help
rob