Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > CSS > CSS Cascading Style Sheets
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 22nd, 2005, 04:34 PM
Authorized User
 
Join Date: Feb 2005
Location: , , .
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.
Reply With Quote
  #2 (permalink)  
Old March 22nd, 2005, 09:51 PM
richard.york's Avatar
Wrox Author
Points: 5,506, Level: 31
Points: 5,506, Level: 31 Points: 5,506, Level: 31 Points: 5,506, Level: 31
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Camby, IN, USA.
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
Reply With Quote
  #3 (permalink)  
Old March 23rd, 2005, 04:21 AM
Authorized User
 
Join Date: Feb 2005
Location: , , .
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.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 12:56 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.