Note that there are some explanatory texts on larger screens.

plurals
  1. POMy Footer Floats
    primarykey
    data
    text
    <p>I have been trying various "sticky" footer solutions for the better part of three days with no success. I seek to place the footer at the bottom of the browser window in instances when not enough content is present to span the window's full height. Please. Help.</p> <p>Here's the basic site structure:</p> <pre><code>&lt;div id="siteWrapper"&gt; &lt;header&gt; &lt;div id="header"&gt; &lt;div id="headerWrapper"&gt;&lt;/div&gt; &lt;/div&gt; &lt;/header&gt; &lt;div id="content"&gt; &lt;div id="innerWrapper"&gt; &lt;div id="columnLeft"&gt;&lt;/div&gt; &lt;aside&gt; &lt;div id="aside"&gt; &lt;div id="asideWrapper"&gt;&lt;/div&gt; &lt;/div&gt; &lt;/aside&gt; &lt;/div&gt; &lt;/div&gt; &lt;footer&gt; &lt;div id="footer"&gt; &lt;div id="footerWrapper"&gt;&lt;/div&gt; &lt;/div&gt; &lt;/footer&gt; &lt;/div&gt; </code></pre> <p>And the associated CSS, edited for brevity, and also not reflecting any of the solutions I've tried (see below):</p> <pre><code>* { margin: 0; padding: 0; } #header { width: 100%; display:inline-block; } #headerWrapper { width: 90%; max-width:980px; } #sitewrapper { width: 100%; min-height: 100%; } #content { padding: 2%; width:90%; max-width: 980px; } #innerWrapper { display:inline-block; } #columnLeft { display: inline-block; width: 70%; float: left; } #aside { width: 30%; float: right; } #footer { background-color: #f5f5f5; width: 100%; } </code></pre> <p>I have tried the following solutions (I can only list two, evidently, because I lack reputation points), including Ryan Fait's...:</p> <p><a href="http://www.cssstickyfooter.com/" rel="nofollow">http://www.cssstickyfooter.com/</a><br> <a href="http://css-tricks.com/snippets/css/sticky-footer/" rel="nofollow">http://css-tricks.com/snippets/css/sticky-footer/</a></p> <p>I'm not a developer, just someone who uses Google. This is the first "responsive" site I've developed, and the first time using HTML5 / CSS3.</p> <p>One thing I've observed is people (Ryan Fait included) applying styles to what I understand to be HTML5's semantic elements (<code>&lt;header&gt;</code>, <code>&lt;article&gt;</code>, <code>&lt;aside&gt;</code>, <code>&lt;footer&gt;</code>). Is this common practice? If so, I can reduce the number of structural div's I'm using, which would nice.</p> <p>Also, I have tried closing the <code>siteWrapper</code> div both above and below the footer, adhering the varying methods demonstrated in each solution listed above. I have viewed these various solutions in Chrome, Firefox, and Safari.</p> <p>Any help you can provide is greatly appreciated.</p>
    singulars
    1. This table or related slice is empty.
    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