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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T16:04:05+00:00 2026-06-06T16:04:05+00:00

i’m extremely frustrated right now. I can’t figure out why my container won’t extend

  • 0

i’m extremely frustrated right now. I can’t figure out why my container won’t extend to the bottom of the page. it reaches the bottom of the visible window, but if you scroll down past that, then the background ends.

my basic structure looks something like this…

<div id='container'>
    <div id='content'>
        /*Some Content here but all divs opened here are closed. (Title Bar, Nav, etc)
        <div id='mainTableContainer'>
             /*This is where a bulk of the code is. A table is generated in PHP and it
                gets fairly lengthy.
        </div>
    </div>
</div>

So that’s basically the HTML. I can’t for the life of my figure out why #container won’t
extend to the bottom of the page!

And the CSS

html{
height:100%;    
}
body {
    font: 100%/1.4 "Museo-sans", Verdana, Arial, Helvetica, sans-serif;
    background: #ccc;
    margin: 0;
    padding: 0;
    color: #000;
    height:100%;
    background-image:url(images/bg.png);
}
.container {
    width: 960px;
    background: #FFF;
    height:100%;
    margin: 0 auto;
    border-left-style:dashed;
    border-right-style:dashed;
    border-width:1px;
    border-color:#bf0000;

  }
 .content {
    height:100%;
    padding: 10px 0;
  }
#mainTableContainer{
    margin:0px auto;
    width:90%;
    height:100%;
    text-align:center;  

}

I tried a lot of the tips I found on this site, but nothing was helping. I don’t think anything is floated. I tried setting all the heights to 100%, I tried setting a min width… I can’t figure it out!!

EDIT:
OK I MADE A JSFILDDLE
So if you shrink the size of the display second in jsfiddle to smaller than the table, and then refresh it, you’ll see that the background doesn’t go all the way down, and the table is left ‘floating’ in the air.
http://jsfiddle.net/LGM3y/1/

  • 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-06-06T16:04:06+00:00Added an answer on June 6, 2026 at 4:04 pm

    You’re trying to select a class, but container is an ID, so you need:

    #container
    

    instead of

    .container
    

    If that doesn’t fix it try setting the background CSS on the HTML tag instead of the container.

    html{
        height:100%;    
        background:#ccc url(images/bg.png);
    }
    

    etc

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

Sidebar

Related Questions

I have a jquery bug and I've been looking for hours now, I can't
this is what i have right now Drawing an RSS feed into the php,
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I know there's a lot of other questions out there that deal with this
Does anyone know how can I replace this 2 symbol below from the string

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.