PDA

View Full Version : scrolling div question


cortic
02-19-2003, 01:06 PM
ok, I have a div covering the width and height of the page loading content and scrolling it over a background (that's the effect I need text scrolling over set background)

I was wondering if there was any way to hook in the main page scroll with the div, so it would look like it was the page that was scrolling down and the background was static..

I've tried to do this the other way with the page scrolling and the background fixed but the only ways I found were jerky (using onscroll) or not supported with IE (CSS)..

A1ien51
02-19-2003, 04:20 PM
why don't you play with this:

<body style="overflow:hidden">
<div style="position:absolute;top:0;left:0;height:100%;width:100%;overflow:auto;">

bLAH BLAH BLAh

</div>

cortic
02-19-2003, 06:52 PM
A1ien51 - thanks, there are that many approaches to these things I hadn't thought of the div scroll itself.. could use CSS to get rid of the margins on IE and it would look great.

Thanks again.