Click here to get back home

Can I prevent an item from scrolling with the page?

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Can I prevent an item from scrolling with the page? Viken Karaguesian 12-07-2005
Posted by Viken Karaguesian on December 7, 2005, 12:56 pm
Please log in for more thread options


Hello all,

Can I prevent something, say a <div>, from scrolling when the page is
scrolled? I know that with CSS, "background-attach: fixed" will anchor
the background element and prevent it from scrolling.

Is there a similar html/css variable or command that I can apply to a
DIV, TABLE, or IMG?

Viken K.


Posted by David Dorward on December 7, 2005, 9:17 pm
Please log in for more thread options


Viken Karaguesian wrote:

> Can I prevent something, say a <div>, from scrolling when the page is
> scrolled? I know that with CSS, "background-attach: fixed" will anchor
> the background element and prevent it from scrolling.
>
> Is there a similar html/css variable or command that I can apply to a
> DIV, TABLE, or IMG?

position: fixed

Supported by CSS 2 browsers.

JavaScript workarounds exist for MSIE.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is

Posted by Viken Karaguesian on December 7, 2005, 6:35 pm
Please log in for more thread options


Thanks for the reply.

Let me guess: IE6 is *not* a CSS 2 Browser, right? Can you point me in
the direction of where I can find some of these javascript workarounds?
Thanks.


Posted by David Dorward on December 8, 2005, 7:37 am
Please log in for more thread options


Viken Karaguesian wrote:

> Let me guess: IE6 is *not* a CSS 2 Browser, right? Can you point me in
> the direction of where I can find some of these javascript workarounds?

As I don't remember any off the top of my head - google.com

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is

Posted by Tony on December 8, 2005, 10:44 am
Please log in for more thread options



David Dorward wrote:
> Viken Karaguesian wrote:
>
> > Let me guess: IE6 is *not* a CSS 2 Browser, right? Can you point me in
> > the direction of where I can find some of these javascript workarounds?
>
> As I don't remember any off the top of my head - google.com
>

Try Quirksmode: http://www.quirksmode.org


Similar ThreadsPosted
prevent horizontal scrolling February 5, 2008, 10:47 pm
creating a scrolling and non-scrolling area on the page November 10, 2006, 10:12 am
Fixed length page / scrolling div September 18, 2005, 1:12 am
best way to put page list on item-list page April 20, 2008, 2:11 am
select an item on a dropdown list July 27, 2005, 9:35 am
grey-out/disabled item in listbox March 10, 2006, 11:22 pm
Questionnaire about item layouts for uni project website June 26, 2007, 8:03 pm
and scrolling September 11, 2004, 10:28 pm
Is horizontal scrolling okay? December 28, 2004, 2:52 pm
scrolling only part of a window October 15, 2004, 10:57 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap