Note that there are some explanatory texts on larger screens.

plurals
  1. POcontainer won't extend to the bottom of the page
    primarykey
    data
    text
    <p>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. </p> <p>my basic structure looks something like this...</p> <pre><code>&lt;div id='container'&gt; &lt;div id='content'&gt; /*Some Content here but all divs opened here are closed. (Title Bar, Nav, etc) &lt;div id='mainTableContainer'&gt; /*This is where a bulk of the code is. A table is generated in PHP and it gets fairly lengthy. &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>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!</p> <p>And the CSS</p> <pre><code>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; </code></pre> <p>}</p> <p>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!!</p> <p>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. <a href="http://jsfiddle.net/LGM3y/1/" rel="nofollow">http://jsfiddle.net/LGM3y/1/</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload