HighDots Forums  

keeping div aligned to bottom of window on page scroll

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss keeping div aligned to bottom of window on page scroll in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
somaboy mx
 
Posts: n/a

Default keeping div aligned to bottom of window on page scroll - 02-27-2006 , 08:53 AM






I'm looking for a way to keep a footer menu attached to the bottom of
the browser window, overlapping other content if the page height exceeds
the browser window's height.

so far, I've com up with:

position: absolute;
bottom: 0 px;
width: 100%;

This works as expected and keeps the div aligned on page load and when
window resizes but when scrolling the page vertically it scrolls along
with the content, which is undesirable.

any suggestions?

thanks,

..soma

Reply With Quote
  #2  
Old   
rwalrus
 
Posts: n/a

Default Re: keeping div aligned to bottom of window on page scroll - 02-27-2006 , 04:37 PM






somaboy mx wrote:
Quote:
I'm looking for a way to keep a footer menu attached to the bottom of
the browser window, overlapping other content if the page height exceeds
the browser window's height.
[snip]

any suggestions?

thanks,

.soma
I believe this is what position: fixed is for. IIRC, our dear friend
IE doesn't do it correctly; usually I see this solved via javacscript.

--
Ryan W



Reply With Quote
  #3  
Old   
Chris Beall
 
Posts: n/a

Default Re: keeping div aligned to bottom of window on page scroll - 02-27-2006 , 05:39 PM



somaboy mx wrote:
Quote:
I'm looking for a way to keep a footer menu attached to the bottom of
the browser window, overlapping other content if the page height exceeds
the browser window's height.

so far, I've com up with:

position: absolute;
bottom: 0 px;
width: 100%;

This works as expected and keeps the div aligned on page load and when
window resizes but when scrolling the page vertically it scrolls along
with the content, which is undesirable.

any suggestions?

thanks,

.soma
..soma,

See my answer in the thread at
http://groups.google.com/group/alt.h...f10f49b4273e3d

Chris Beall



Reply With Quote
  #4  
Old   
IEDesigner
 
Posts: n/a

Default Re: keeping div aligned to bottom of window on page scroll - 02-28-2006 , 10:35 AM



"somaboy mx" <nosuch (AT) fakemail (DOT) fk> wrote

Quote:
I'm looking for a way to keep a footer menu attached to the bottom of
the browser window, overlapping other content if the page height exceeds
the browser window's height.

so far, I've com up with:

position: absolute;
bottom: 0 px;
width: 100%;

This works as expected and keeps the div aligned on page load and when
window resizes but when scrolling the page vertically it scrolls along
with the content, which is undesirable.

any suggestions?

thanks,

.soma
Ask your question in news:comp.lang.javascript
IEDesigner




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.