Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Weird problems with CSS sticky footer
Old 08-30-2007, 01:44 AM Weird problems with CSS sticky footer
Experienced Talker

Posts: 36
Trades: 0
hey all. currently working on www.mcconathylaw.com/staging/dwiquestions1.html (css is at www.mcconathylaw.com/staging/assets/main.css) and am seeing a couple of problems with my layout. i'm using a sticky footer that i found online that requires the #footer and #push (#push pushes the footer past the bottom of the content) and am having some problems.

on any page that has links toward the bottom of the content, they are not click-able. i think it has something to do with the #push div keeping them from working. so far, i've only tested it on ie7 and ff2 and ff works fine. here are screenshots that i took that might help explain...



with the content highlighted so you can see the #push div:





the other problem is that ie7 is rendering the footer at the bottom of the content, but firefox is putting space between them.

in ie7:



in ff2:



any guidance is greatly appreciated!!!
edzdallas79 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-30-2007, 03:58 PM Re: Weird problems with CSS sticky footer
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
I really don't see the point behind the #push div, or the negative margin on the footer. Everybody seems to want to complicate getting a footer to stay below the content area.

One thing I noticed is that you have not cleared your floats, something you have to do.

IE 6 does NOT support min/max height or width, so you'll have a problem there too.

Clear your floats, then see what FF does.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 08-30-2007, 08:10 PM Re: Weird problems with CSS sticky footer
Experienced Talker

Posts: 36
Trades: 0
i don't understand. my floats are cleared. the only floats i have on this page are the #nav and #main divs. and i cleared those. what other floats need to be cleared?
edzdallas79 is offline
Reply With Quote
View Public Profile
 
Old 08-30-2007, 10:16 PM Re: Weird problems with CSS sticky footer
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
So you did, sorry, but you need to close it up, and you really shouldn't use a div. Anyway, add this to the clearing div rules:

height: 0;
line-height: 0;
margin: 0;
font-size: 1px;

The extra space between the footer and and the content is coming from the default margin and padding on the UL in the footer. Add this and it will go away:
#footer ul{ margin: 0; padding: 0;}
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Weird problems with CSS sticky footer
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.20194 seconds with 12 queries