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 682473
In Process

The Archive Base Latest Questions

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

I usually have my structure laid out something like this: <div id=all> <div id=page>

  • 0

I usually have my structure laid out something like this:

<div id="all">
  <div id="page">
    <div id="header"></div>
    <div id="content"></div>
    <div id="footer"></div>
  </div>
</div>

Where the body will hold a background pattern, “all” will hold a dropshadow for the page going up and down, and “page” may often have a repeating-y background as well.

I have tried variations on using the css height/min-height properties:

html, body {
    height:100%;
    ...
}
#all {
    height:100%; 
    min-height:100%; 
}
#page {
    height:100%; 
    min-height:100%;
    height:auto !important;
}

It seems like if I remove height:auto from “all” then it seems like it works UNTIL you scroll, then after the scroll the background for all dissappears

example

However if I keep the height:auto there then I get the problem of the background for page not working

example

Hopefully someone knows a fix?

  • 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:35:59+00:00Added an answer on May 14, 2026 at 1:35 am

    Well, here’s what I ended up with for the CSS:

    html, body {
        height:100%; /* IE6: treaded as min-height*/
        margin: 0;
        padding: 0;
    }
    body {
        margin: 0;
        padding: 0;
        color: #494949;
        text-align: center;
        background-color: #3f91a7;
        background-image: url(images/bg_body.jpg);
        background-repeat: repeat-x;
        background-position: center top;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 12px;
    }
    #all {
        margin: 0px;
        padding: 0px;
        height:100%; /* IE6: treaded as min-height*/
        min-height:100%; /* real browsers */
        height:auto !important;
        background-image: url(images/bg_all.png);
        background-repeat: repeat-y;
        background-position: center top;
        overflow: hidden;
    }
    #page {
        width: 993px;
        padding: 0 0 10000px;
        margin-top: 0px;
        margin-right: auto;
        margin-bottom: -10000px;
        margin-left: auto;
        text-align: left;
        background-color: #FFF;
        background-image: url(images/bg_page.jpg);
        background-position: center top;
        background-repeat: repeat-y;
        height:100%; /* IE6: treaded as min-height*/
        min-height:100%; /* real browsers */
        height:auto !important;
    }
    #header, #footer {
        text-align: center;
        font-size: 16px;
        padding: 20px;
    }
    #content {
        padding: 25px;
    }
    

    I haven’t had a chance to test it in anything other than Firefox, but, hoipefully it will give you a good start.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So, I have an app/assets/stylesheets/ directory structure that looks something like this: |-dialogs |-mixins
In a Python system for which I develop, we usually have this module structure.
When performing many inserts into a database I would usually have code like this:
I have a directory structure like this: --bin/ --lib/ --data/ So basically, the executable
I have a url structure that looks something like some_page.php?id=123 and I get the
I usually have to check things like: if ['Bob','Mary','John'].include? @user.name Is there a way
Just want to start out by saying this seems like a great site, hope
Sometimes I face I must write a piece of code like this (usually it
Usually, I'm good with CSS, but I can't seem to figure this one out.
I usually have the tw=80 option set when I edit files, especially LaTeX sources.

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.