Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > CSS > CSS Cascading Style Sheets
|
CSS Cascading Style Sheets All issues relating to Cascading Style Sheets (CSS).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the CSS Cascading Style Sheets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 22nd, 2005, 04:34 PM
Authorized User
 
Join Date: Feb 2005
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default Absolute position vs. other divs

On my website, http://www.kendietz.com, I would like to use 'position:absolute;bottom: 0px' to tie the footer to the bottom of the browser window. However, when I do that, if I resize the screen (or if my resolution is 800x600), the footer will supercede the main body elements.

Is there a way to tie the footer to the bottom of the browser, yet still respect (ie., not roll over) the divs above it?

Any help appreciated.
 
Old March 22nd, 2005, 09:51 PM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

Right, I recommend not using absolute positioning for the footer. Or, if you must, use a wrapping <div> around the content of the body, and position absolutely relative to the wrapper. Does that make sense? If not, post a link where I can see your code and I'll elaborate more.



Regards,
Rich

--
[http://www.smilingsouls.net]
Mail_IMAP: A PHP/C-Client/PEAR solution for webmail
Author: Beginning CSS: Cascading Style Sheets For Web Design
 
Old March 23rd, 2005, 04:21 AM
Authorized User
 
Join Date: Feb 2005
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Here are the relevant files:

http://www.kendietz.com/index.xml
http://www.kendietz.com/index.xsl
http://www.kendietz.com/css/index.css

Using absolute positioning certainly isn't a must. I'm just playing around with my personal site, trying to learn something. I just thought it would look nicer if I could peg the footer to the bottom of the browser, but I don't want it to roll over the main body when the browser size is reduced. If there's a way to do that without absolute positioning, that would be great.

Thanks for your help.





Similar Threads
Thread Thread Starter Forum Replies Last Post
divs inside divs: theory? Giant_robot_sandwich CSS Cascading Style Sheets 11 September 13th, 2006 03:56 PM
position: absolute; fix for IE 7 crmpicco Javascript How-To 1 March 30th, 2006 04:45 AM
<div> with a absolute position crmpicco Javascript How-To 0 August 30th, 2005 05:42 AM
position:absolute nerssi CSS Cascading Style Sheets 3 February 21st, 2005 10:17 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.