Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 680599
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T01:23:27+00:00 2026-05-14T01:23:27+00:00

How to do to avoid having the scroller with a sticky footer to the

  • 0

How to do to avoid having the scroller with a sticky footer to the bottom of the page (not bottom of window)?
When I remove height=100% from content and sidebar, I’m no more getting the scroller. However, when doing so, my content and sidebar do not fill all the space down to the footer.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>Untitled 13</title>
<style media="all" type="text/css">
* {
    margin: 0;
    padding: 0;
}
html, body, #wrap, form {
    height: 100%;
}
#wrap, #footer {
    width: 750px;
    margin: 0 auto;
}
#wrap {
    background: #cff;
}
html, body {
    color: #000;
    background: #a7a09a;
}
body > #wrap {
    height: 100%;
    min-height: 100%;
}
form {
    /*height: auto;*/
    min-height: 100%;
}
#main {
    background: #000;
    height:100%; 
    min-height:100%; 
    height: auto !important; */
}

#content {
    height:100%;
    float: left;
    padding: 10px;
    float: left;
    width: 570px;
    background: #9c9;
}
#sidebar {
    height:100%;
    float: left;
    width: 140px;
    background: #c99;
    padding: 10px;
}
#footer {
    position: relative;
    margin-top: -100px; 
    height: 100px;
    clear: both; 
    background: #cc9;
    bottom: 0;
}
.clearfix:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}
.clearfix {
    display: inline-block;
}
* html .clearfix {
    height: 1%;
}
.clearfix {
    display: block;
}
#header {
    /*padding: 5px 10px;*/
    background: #ddd;
}
</style>
</head>

<body>

<form id="form1" runat="server">
    <div id="wrap">
        <div id="main" class="clearfix">
            <div id="header">
                <h1>header</h1>
            </div>
            <div id="sidebar">
                <h2>sidebar</h2>
            </div>
            <div id="content">
                <h2>main content</h2>
            </div>
        </div>
    </div>
    <div id="footer">
        <h2>footer</h2>
    </div>
</form>

</body>

</html>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T01:23:27+00:00Added an answer on May 14, 2026 at 1:23 am

    Here is finally one solution (I don’t remember where I get this code …. it’s not mine 😉 ) :

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
    
    <head>
    <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
    <title>CSS Layout - 100% height</title>
    <style type="text/css">
    html, body {
        margin: 0;
        padding: 0;
        height: 100%; /* needed for container min-height */;
        background: gray;
        font-family: arial,sans-serif;
        font-size: small;
        color: #666;
    }
    div#container {
        position: relative; /* needed for footer positioning*/;
        margin: 0 auto;
    /* center, not in IE5 */    width: 750px;
        background: #f0f0f0;
        height: auto !important; /* real browsers */;
        height: 100%; /* IE6: treaded as min-height*/;
        min-height: 100%; /* real browsers */
    }
    div#header {
        padding: 1em;
        /*background: #ddd url("../csslayout.gif") 98% 10px no-repeat;*/
        border-bottom: 6px double gray;
    }
    div#content {
        padding: 1em 1em 5em; /* bottom padding for footer */
    }
    div#footer {
        position: absolute;
        width: 100%;
        bottom: 0; /* stick to bottom */;
        background: #ddd;
        border-top: 6px double gray;
    }
    </style>
    </head>
    
    <body>
    
    <div id="container">
        <div id="header">
            entete  </div>
    
        <div id="content">
            contenu </div>
        <div id="footer">
            pied de page
        </div>
    </div>
    
    </body>
    
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to avoid having to put this in every page? # -*-
I can understand wanting to avoid having to use a cursor due to the
This is to avoid having some <<< or some >>> in that file if
I'd like to avoid having many checks like the following in my code: myObj.someStringField
Is it possible to avoid having 'NULL' stings on the client when binding JSON
I want to avoid having lots of if Request.IsAjaxRequest() in my controllers. I was
I would like to avoid having to build a menu manually in XAML or
I'm using the AsyncOperation class to avoid having to write tons of if (control.InvokeRequired)
How do I avoid read locks in my database? Answers for multiple databases welcome!
After trying to avoid JavaScript for years, Iv started using Query for validation in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.