473,395 Members | 1,577 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Positioning footer at bottom of screen

Hi All,

I am trying to position the footer div in my page to stay at the bottom of the screen when the content does not reach or exceed the height of the browser window. I am able to position it absolutely by adding:

Expand|Select|Wrap|Line Numbers
  1. div#footer {
  2. ....
  3. position: absolute;
  4. bottom: 0; 
  5. }
  6.  
However when there is scrollable content, the footer sticks on top of the text and scrolls with it (which I expected).

Can anyone tell me a way I can modify this so that the footer will always stay at the end of the text?

The layout im using is:

Expand|Select|Wrap|Line Numbers
  1. <div id="wrapper">
  2. <div id="header"></div>
  3. <div id="pagecontent"></div>
  4. <div id="footer"></div>
  5. </div>
Thanks
Aug 15 '07 #1
1 2648
drhowarddrfine
7,435 Expert 4TB
Please see the example in this thread.
Aug 15 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Jonah Bishop | last post by:
I have a strange problem that I'm hoping someone can help me with. I want a footer at the bottom of my simple HTML page to span the entire width of the page. I'm not using floats, columns or any...
12
by: John Smith | last post by:
Is it possible to position a DIV so that it will always be at the bottom of the screen without having to use absolute positioning or using the background image workaround? Thank you!
2
by: Tim Charles | last post by:
Hello I am close to finishing my first properly css-friendly site (at least I hope it is), and am looking for some general feedback, plus a specific question answered, if possible. ...
1
by: Frances Del Rio | last post by:
don't know if I'll succeed, have spent a lot of time already trying to figure this out: I would like to position a footer (co. name, address, etc..) at the bottom of browser page, in such a way...
7
by: bobmct | last post by:
I've been toying with this for many weeks now and it still doesn't work as desired; I'm trying to develop with css compliance. In general my pages are within a container. Withing the...
8
by: maya | last post by:
since IE doesn't support CSS2, does anyone have a suggestion of what best way is to position a footer (just one line of text w/contact info) so it always falls @ or near bottom of pg (regardless of...
1
by: viveklinux | last post by:
Hi , For one of the web pages being developed , have a footer at the end of the page which needs to stay fixed at the bottom if the page fits the screen or the content is less than the screen...
2
by: nonsensitor | last post by:
I'm just learning xhtml & css, primarily from westciv's online tutorials and css guide. I've run into a couple of problems with a page I'm developing that I can't figure out. The first problem is...
6
by: sooshi | last post by:
Hi all, The height of my page needs to be flexible as the page contains columns with lists which can vary in length. I also have a footer which needs to be stuck to the bottom. I managed to do...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.