iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-03-2005, 09:55 PM
richkoi's Avatar
WebProWorld Veteran
 
Join Date: Aug 2003
Location: Atlanta, GA
Posts: 451
richkoi RepRank 0
Default CSS Footer

I want to create a page where the footer is always at the bottom at the page and the header always at the top.

I faked it with this site, but it isn't quite what I want to do. I would rather the footer went all the way to the bottom rather than all the wasted space.

Thanks,

Rich
__________________
Me
Reply With Quote
  #2 (permalink)  
Old 07-04-2005, 08:25 AM
bj's Avatar
bj bj is offline
WebProWorld 1,000+ Club
 
Join Date: Apr 2005
Location: Delaware Valley, PA
Posts: 1,172
bj RepRank 3bj RepRank 3
Default Hope this helps.

http://css-discuss.incutio.com/?page=FooterInfo
Reply With Quote
  #3 (permalink)  
Old 07-04-2005, 10:16 AM
ADAM Web Design's Avatar
WebProWorld 1,000+ Club
 
Join Date: Dec 2003
Location: Toronto, Ontario, Canada
Posts: 2,181
ADAM Web Design RepRank 1
Default

Which site?
Reply With Quote
  #4 (permalink)  
Old 07-05-2005, 03:29 AM
richkoi's Avatar
WebProWorld Veteran
 
Join Date: Aug 2003
Location: Atlanta, GA
Posts: 451
richkoi RepRank 0
Default

This site:

http://www.richkoi.com

Rich
__________________
Me
Reply With Quote
  #5 (permalink)  
Old 07-05-2005, 11:07 AM
ADAM Web Design's Avatar
WebProWorld 1,000+ Club
 
Join Date: Dec 2003
Location: Toronto, Ontario, Canada
Posts: 2,181
ADAM Web Design RepRank 1
Default

I don't see what the problem is. The footer is at the bottom of every page and the header is at the top. Unless you mean you want the footer to be at the bottom without any scrolling necessary.

In that case, the only way I could see to accomplish something like that would be with a scrolling DIV in the middle with the height property calculated by a Javascript.
Reply With Quote
  #6 (permalink)  
Old 07-05-2005, 02:03 PM
richkoi's Avatar
WebProWorld Veteran
 
Join Date: Aug 2003
Location: Atlanta, GA
Posts: 451
richkoi RepRank 0
Default

Ok, here's a better example:

http://www.richknitter.com/

On pages with little text (http://www.richknitter.com/rich.php?page=copyright.htm) I would like the footer to be at the bottom of the screen, even if there is a lot of white space inbetween.

Rich
__________________
Me
Reply With Quote
  #7 (permalink)  
Old 07-05-2005, 03:42 PM
WebProWorld Pro
 
Join Date: Apr 2005
Posts: 259
johngroup RepRank 1
Default

CSS from Paul at Sitepoint:
<style type="text/css">
/* commented backslash hack \*/ html, body{height:100%;} /* end hack */ html,body {margin:0;padding:0} #outer{ min-height:100%; margin-bottom:-50px; height:auto; } * html #outer{height:100%;} #footer { width:100%; clear:both; height:50px; background-color: #FF8080; color: #000000; } #clearfooter{clear:both;height:50px;} div>p {margin:0} #minHeight{float:left;width:0px;height:100%;margin-bottom:-52px;} /*safari wrapper thanks to Tim Connor*/ * html #minHeight{margin-bottom:-50px;}
</style>

HTML:
<div id="minHeight"></div>
<!—Safari hack -->
<div id="outer">


content goes here</p>
<div id="clearfooter"></div>
</div>
<div id="footer">Footer -</div>
Reply With Quote
  #8 (permalink)  
Old 07-08-2005, 02:07 PM
richkoi's Avatar
WebProWorld Veteran
 
Join Date: Aug 2003
Location: Atlanta, GA
Posts: 451
richkoi RepRank 0
Default

Here's another resource I found that does what I want... except I hate CSS hacks. I wish there was a pure, cross browser compatible solution for this problem.

http://scott.sauyet.name/CSS/Demo/FooterDemo1.html

Rich
__________________
Me
Reply With Quote
  #9 (permalink)  
Old 07-08-2005, 06:06 PM
WebProWorld MVP
WebProWorld MVP
 
Join Date: Jul 2004
Location: Omaha
Posts: 2,714
brian.mark RepRank 3brian.mark RepRank 3
Default You could...

You could always use tables if you don't like the css hacks. Just set the height to 100% and it works in IE and FF just fine. I still do that a lot since I don't do much CSS stuff. My PPC doesn't seem to ever like it. ;-)

Brian.
__________________
ToolBarn.com, an Internet Retailer Top 500 and Inc. 500 Company | Tool Parts | Pet Supplies
Reply With Quote
Reply

  WebProWorld > Site Design > Graphics & Design Discussion Forum

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



All times are GMT -4. The time now is 11:14 AM.



Search Engine Optimization by vBSEO 3.3.0