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
make footer stay at bottom of screen?
Old 04-14-2010, 01:33 PM make footer stay at bottom of screen?
Super Talker

Posts: 142
Name: William
Trades: 0
I thought I got it, but it only works if the page is full of content...

how would I get my footer bar to sit at the bottom of the browser?
I have tried adding vertical-align:bottom; to my css and tried margin: 0 auto;


website: http://uuilliam.net/test_server/comment.php
UUilliam is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-14-2010, 10:02 PM Re: make footer stay at bottom of screen?
angele803's Avatar
Perfectly Imperfect

Posts: 1,772
Name: Stephanie
Location: Oklahoma
Trades: 2
This site might help you: http://ryanfait.com/sticky-footer/
__________________

Please login or register to view this content. Registration is FREE
angele803 is offline
Reply With Quote
View Public Profile
 
Old 04-15-2010, 01:38 AM Re: make footer stay at bottom of screen?
jamestl2's Avatar
No scale-itch here...

Latest Blog Post:
Wordpress Relative URLs Plugin
Posts: 2,389
Name: <member type="brilliant" alt="foolish">James Lewitzke</member>
Location: / public_html / Universe / Virgo_Supercluster / Local_Group / Milky_Way / Orion_Arm / Solar_System / Earth / North_America / USA / Wisconsin
Trades: 0
So basically wrap your content inside a div and give it a min-height.
__________________
Engipress -
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
for Wordpress Projects
jamestl2 is offline
Reply With Quote
View Public Profile Visit jamestl2's homepage!
 
Old 04-15-2010, 02:40 AM Re: make footer stay at bottom of screen?
Super Talker

Posts: 142
Name: William
Trades: 0
not working
UUilliam is offline
Reply With Quote
View Public Profile
 
Old 04-15-2010, 03:21 AM Re: make footer stay at bottom of screen?
jamestl2's Avatar
No scale-itch here...

Latest Blog Post:
Wordpress Relative URLs Plugin
Posts: 2,389
Name: <member type="brilliant" alt="foolish">James Lewitzke</member>
Location: / public_html / Universe / Virgo_Supercluster / Local_Group / Milky_Way / Orion_Arm / Solar_System / Earth / North_America / USA / Wisconsin
Trades: 0
You can't just give a div a wrapper class and not have any CSS rules applied to it. Put the min-height property inside the stylesheet and assign it a value of however much you want.

Also make sure the footer is outside of the content wrapper.
__________________
Engipress -
Please login or register to view this content. Registration is FREE


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

Last edited by jamestl2; 04-15-2010 at 03:22 AM..
jamestl2 is offline
Reply With Quote
View Public Profile Visit jamestl2's homepage!
 
Old 04-15-2010, 04:05 AM Re: make footer stay at bottom of screen?
jamestl2's Avatar
No scale-itch here...

Latest Blog Post:
Wordpress Relative URLs Plugin
Posts: 2,389
Name: <member type="brilliant" alt="foolish">James Lewitzke</member>
Location: / public_html / Universe / Virgo_Supercluster / Local_Group / Milky_Way / Orion_Arm / Solar_System / Earth / North_America / USA / Wisconsin
Trades: 0
Also, the height needs to be applied to all wrapping elements in this instance. So just make sure your CSS has this:

Code:
html, body {
 height: 100%;
}

.wrapper {
 min-height: 100%;
}
__________________
Engipress -
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
for Wordpress Projects
jamestl2 is offline
Reply With Quote
View Public Profile Visit jamestl2's homepage!
 
Old 04-15-2010, 07:09 AM Re: make footer stay at bottom of screen?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
http://www.webmaster-talk.com/css-fo...gn-bottom.html
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 04-15-2010, 11:33 AM Re: make footer stay at bottom of screen?
Super Talker

Posts: 142
Name: William
Trades: 0
http://www.themaninblue.com/writing/...ve/2005/08/29/

that helped me (well.. you guys helped me, then through chris' link I got that link.)

all I added was:

html{
height:100%;
}
.wrapper{
min-height:100%;
height !important;
}
body{
height:100%;
}
UUilliam is offline
Reply With Quote
View Public Profile
 
Old 04-15-2010, 11:59 AM Re: make footer stay at bottom of screen?
Super Talker

Posts: 142
Name: William
Trades: 0
Problem #2, When on http://uuilliam.net/test_server/comment.php

if you expand the chat,

it continues under the footer :S, it isn't floated so I know floats aren't the problem...
and surely the thing to push the footer down should have stopped that from happening?
UUilliam is offline
Reply With Quote
View Public Profile
 
Old 04-15-2010, 12:27 PM Re: make footer stay at bottom of screen?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Probably absolute positioning, but as the entire page is a grey box for me, I can't tell what is what any way.

I'd suggest that you pay some serious attention to accessibility before you go much further.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 04-15-2010, 12:31 PM Re: make footer stay at bottom of screen?
Super Talker

Posts: 142
Name: William
Trades: 0
made background white so you can see it.
UUilliam is offline
Reply With Quote
View Public Profile
 
Old 04-15-2010, 12:35 PM Re: make footer stay at bottom of screen?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Seems to work ok in FireFox what browser(s) is the problem with?
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 04-15-2010, 12:38 PM Re: make footer stay at bottom of screen?
Super Talker

Posts: 142
Name: William
Trades: 0
expand the comment box (the first little box says view all 16 comments) click that
then thats when it over laps.
UUilliam is offline
Reply With Quote
View Public Profile
 
Old 04-16-2010, 08:33 AM Re: make footer stay at bottom of screen?
Super Talker

Posts: 142
Name: William
Trades: 0
bump.
UUilliam is offline
Reply With Quote
View Public Profile
 
Old 04-16-2010, 08:47 AM Re: make footer stay at bottom of screen?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
browser?
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 04-16-2010, 10:15 AM Re: make footer stay at bottom of screen?
Super Talker

Posts: 142
Name: William
Trades: 0
I am using chrome, firefox, opera, safari and ie, happens in them all
UUilliam is offline
Reply With Quote
View Public Profile
 
Old 04-16-2010, 10:29 AM Re: make footer stay at bottom of screen?
Super Talker

Posts: 142
Name: William
Trades: 0
UUilliam is offline
Reply With Quote
View Public Profile
 
Old 04-16-2010, 07:15 PM Re: make footer stay at bottom of screen?
jamestl2's Avatar
No scale-itch here...

Latest Blog Post:
Wordpress Relative URLs Plugin
Posts: 2,389
Name: <member type="brilliant" alt="foolish">James Lewitzke</member>
Location: / public_html / Universe / Virgo_Supercluster / Local_Group / Milky_Way / Orion_Arm / Solar_System / Earth / North_America / USA / Wisconsin
Trades: 0
Float the content container then clear the footer div.
__________________
Engipress -
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
for Wordpress Projects
jamestl2 is offline
Reply With Quote
View Public Profile Visit jamestl2's homepage!
 
Old 04-17-2010, 05:41 AM Re: make footer stay at bottom of screen?
Super Talker

Posts: 142
Name: William
Trades: 0
I added float:left; to .wrapper
and added
clear:both; to .footer

problem is; it pushes content to left
and still over flows the footer

the only thing that it does fix, is the background of the content also displays above the footer.
UUilliam is offline
Reply With Quote
View Public Profile
 
Old 04-17-2010, 05:47 AM Re: make footer stay at bottom of screen?
Super Talker

Posts: 142
Name: William
Trades: 0
update:

adding the float to the disclaimer
then adding <div class="clear" /> to footer and in css put .clear {clear:both;}

but the "comment" button still appears above it so I am guessing it is probably floated in the other style sheet

but I also want 50px of space between bottom of content and the footer, but when I add a margin-top to footer, it pushes it down instead of just forcing the content to stay 50px away (if you get what I mean)

i also tried margin-bottom on the content container but same thing happens.

Last edited by UUilliam; 04-17-2010 at 05:59 AM..
UUilliam is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to make footer stay at bottom of screen?

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.63880 seconds with 12 queries