|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| 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
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
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 |
|
||||
|
|
|
||||
|
Which site?
__________________
Toronto Web Design | Search Engine Friendly, Standards-Compliant Layouts | Walk on my Path (my blog) |
|
||||
|
__________________
Me |
|
||||
|
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.
__________________
Toronto Web Design | Search Engine Friendly, Standards-Compliant Layouts | Walk on my Path (my blog) |
|
||||
|
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 |
|
|||
|
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> |
|
||||
|
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 |
|
|||
|
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 |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |