Advertisement

03.02.2008 at 07:10AM PST, ID: 23207486
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

Position floating html / css footer at bottom of page or bottom of screen, whichever is further?

Tags: html / css, cross browser
The snip shows a footer div and associated css that displays a 'pretty' footer with various links. The footer is floating and appears at the bottom center of the browser window and repositions when the windows dimensions change.

However, if the particular page has more content it extends right through the footer and on down.

The footer should appear right below the content div, but on screens with little content, never higher than the bottom of the screen.

I can get the effect by making sure the content div is always tall enough, by working on every page, and letting the footer fall right below it, but this is a pain to think of on every page. And it isn't very elegant.

f I take away the absolute positioning and just plop the div after the content then it looks perfect on pages with lots of content but pages with just a few lines, the footer can be almost at the top of the page.

The environment is VS '08 and the app is asp.net with a master page. The answer must be standards based, not specific to a particular browser.

I'll be annoyed but grateful if the answer is one tiny little setting.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
The footer, taken from MasterPage.master
 
<div id="footer" class="FooterText">
  <br />
  &copy; 2008 AcmeProducts, Inc. All rights reserved. | (800) 000-0000 | <a href="privacy.html">Privacy/Legal</a><br />
  We welcome your site <a href="mailto:webmaster@acmeproducts.com?subject=Website Feedback">feedback</a>. Please send us your questions and/or comments.<br />
  <br />
  <a href="http://www.section508.gov" target="_blank">
    <img src="images/colophon_sec508.gif" alt="This site conforms to the US Government Section 508 Accessibility Guidelines" /></a>&nbsp;&nbsp;
  <a href="http://www.w3.org/WAI/WCAG1AA-Conformance" target="_blank">
    <img src="images/colophon_wai-aa.gif" alt="This site conforms to the W3C-WAI Web Content Accessibility Guidelines" /></a>&nbsp;&nbsp;
  <a href="http://validator.w3.org/check/referer" target="_blank">
    <img src="images/colophon_xhtml.png" alt="This site is valid XHTML" /></a>&nbsp;&nbsp;
  <a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank">
    <img src="images/colophon_css.png" alt="This site was built with valid CSS" /></a>&nbsp;&nbsp;
  <img src="images/colophon_anybrowser.png" alt="This site is usable in any web browser" />
</div>
 
And the css that shapes it:
 
.FooterText 
{
	text-align:center;
	position:absolute;	
	bottom:12px;
	font-size:11px;
	font-weight:normal; 
	text-decoration:none; 
	font-family:Verdana; 
	margin-top:10px;
	margin-left:0px; 
	margin-bottom:2px; 
	padding:0px; 
	color:#999999; 
	white-space:nowrap;
	width:100%;
}
 
.FooterText img { border-style: none; }
.FooterText A:link { font-weight:normal; color:#999999; text-decoration:underline; }
.FooterText A:visited { font-weight:normal; color:#999999; text-decoration:underline; }
.FooterText A:active { font-weight:normal; color:#999999; text-decoration:underline; }
.FooterText A:hover { font-weight:normal; color:#FF6600; text-decoration:underline; }
Start your free trial to view this solution
Question Stats
Zone: Web Development
Question Asked By: namedpipes
Solution Provided By: logicalinsanity
Participating Experts: 1
Solution Grade: B
Views: 284
Translate:
Loading Advertisement...
03.02.2008 at 12:11PM PST, ID: 21027306

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
20080236-EE-VQP-29 / EE_QW_2_20070628