Anya Posted August 7, 2005 Posted August 7, 2005 Is there any way that I can align a <*div> to always sit at the bottom of a browser window or at the bottom of everything on that webpage? Quote
carbonize Posted August 7, 2005 Posted August 7, 2005 Yes and No. You can set it to sit on the bottom and to stay there but unfortunately Internet Explorer's pathetic CSS 2 support means it will not work on IE (if I remember correctly). You could do it with Javascript. Quote
surefire Posted August 7, 2005 Posted August 7, 2005 carbonize is correct, but let me add my two cents. You can have a div start after all the other content (tables, divs, etc) and that may be the bottom of the page, or if the rest of the content doesn't fill up a page, it could be halfway down. This is relative positioning and it puts the div after whatever comes before it. If you have a page of content preceeding the div, then a visitor would have to scroll down to see it, and it would be at the bottom of the web page. You could use absolute positioning to take the div out of the normal flow of content and place it x number of pixels from the bottom of the page. This will overlap some of the content that comes before it, but it will certainly be at the bottom of the webpage, even if the content that comes before it doesn't reach very far down the screen. I've read your question a bunch of times... I hope I didn't miss the point. Quote
TCH-Don Posted August 7, 2005 Posted August 7, 2005 Here is a nice example from W3Schools.com of the absolute position. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.