This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Fixed div at the bottom Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Fixed div at the bottom" Watch "Fixed div at the bottom" New topic

Fixed div at the bottom

Hussein Baghdadi
clojure forum advocate

Joined: Nov 08, 2003
Posts: 3476

How to create a div that is fixed at the bottom of the browser window?
And it should stays there no matter if the user is scrolling.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60785

Divide the page into two divs. Make the top div scrollable (hint: check out the overflow CSS rule).

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Fixed div at the bottom
Similar Threads
DIV shrinks to fit its content
Aligning columns in 2 tables
Creating CSS class at runtime
DIV positioning
Interesting UBB tag mismatch bug?