[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

04/07/2003 at 09:48AM PDT, ID: 20577118
[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!

9.2

How do I position a footer and make it stay there when scrolling

Asked by mraible in Cascading Style Sheets (CSS)

Tags: footer, div, css, position

I have a footer <div> that is absolutely positioned to be { bottom: 0px; left: 0px }, which works great, except when the content <div> on my page is longer than the the user's browser window.  This causes the footer to overlay the content <div>, which is fine, but when the user scrolls down, the footer stays where it is.  Is it possible with CSS to make the footer *stick* to the bottom of the browser window.  I found I can use a floating div, but this requires JavaScript, and I'd rather just use CSS.

Here is an example - click on the "set height" link and scroll down - you'll notice that the footer stays in the same spot, rather than sticking to the bottom of the browser window.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html>
<head>
     <title>Static Footer</title>
    <style type="text/css">
        body {
            margin: 0;
            padding: 0;
        }
        div#content {
            width: 100%;
            background: #eee;
            height: 300px;
            border-top: 1px solid black;
            border-bottom: 1px solid blue;
            padding-top: 30px;
            text-align: center;
        }
        div#footer {
            position: absolute;
            bottom: 0px;
            left: 0px;
            background: #ffd;
            height: 20px;
            width: 100%;
            border-top: 1px solid red;
        }
    </style>
</head>

<body>

<div id="content">
<a href="?" onclick="document.getElementById('content').style.height='1000px'; return false">Set height to 1000px</a>
</div>

<div id="footer"></div>

</body>
</html>

[+][-]04/07/03 01:24 PM, ID: 8286731

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/07/03 02:12 PM, ID: 8287052

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Cascading Style Sheets (CSS)
Tags: footer, div, css, position
Sign Up Now!
Solution Provided By: COBOLdinosaur
Participating Experts: 3
Solution Grade: A
 
 
[+][-]04/07/03 05:23 PM, ID: 8288091

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/07/03 11:42 PM, ID: 8289605

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/08/03 02:40 AM, ID: 8290346

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/08/03 07:13 AM, ID: 8291836

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/08/03 09:21 AM, ID: 8292924

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20090824-EE-VQP-74