[css-d] Keeping a div positioned in Viewport

2007-06-05 Thread Sam Carter

I have an application with vertical scrolling.  I'd like to keep a div
positioned in the viewport.  Before I resort to beating it up with
JavaScript, is there a CSS technique, maybe with minor JavaScript, which
works well across browsers?

Sam


__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] Keeping a div positioned in Viewport

2007-06-06 Thread Lori Lay
Sam Carter wrote:
> I have an application with vertical scrolling.  I'd like to keep a div
> positioned in the viewport.  Before I resort to beating it up with
> JavaScript, is there a CSS technique, maybe with minor JavaScript, which
> works well across browsers?
>
> Sam
>   
It sounds like you're after fixed positioning but it's not supported in 
IE 6.  Georg aka Gunlaug aka Ron Zisman has, in addition to his identity 
crisis*, some interesting work-arounds to this issue:

http://www.gunlaug.no/contents/wd_additions_15.html

Lori

*  Forgive me, but I have been dying to say that for the last few days.  
Seems Georg is re-working his website and I guess he's deciding on a new 
moniker as well :-)
__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/