Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You need to wrap your <code>.container-fluid</code> div in order for your sticky footer to work, you're also missing some properties on your <code>.wrapper</code> class. Try this:</p> <p>Remove the <code>padding-top:70px</code> from your <code>body</code> tag and include it in your <code>.container-fluid</code> instead, like so:</p> <pre><code>.wrapper &gt; .container-fluid { padding-top: 70px; } </code></pre> <p>We have to do this because pushing the <code>body</code> down to accommodate the navbar ends up pushing the footer a bit further (70px further) past the viewport so we get a scrollbar. We get better results pushing the <code>.container-fluid</code> div instead.</p> <p>Next we have to remove the <code>.wrapper</code> class outside your <code>.container-fluid</code> div and wrap your <code>#main</code> div with it, like so:</p> <pre><code>&lt;div class="wrapper"&gt; &lt;div id="main" class="container-fluid"&gt; &lt;div class="row-fluid"&gt;...&lt;/div&gt; &lt;div class="push"&gt;&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>Your footer of course has to be out of the <code>.wrapper</code> div so remove it from the `.wrapper div and place it outside, like so:</p> <pre><code>&lt;div class="wrapper"&gt; .... &lt;/div&gt; &lt;footer class="container-fluid"&gt; .... &lt;/footer&gt;&lt;!--END .row-fluid--&gt; </code></pre> <p>After thats all done, properly push your footer closer to your <code>.wrapper</code> class by using a negative margin, like so:</p> <pre><code>.wrapper { min-height: 100%; height: auto !important; /* ie7 fix */ height: 100%; margin: 0 auto -43px; } </code></pre> <p>And that should work, though you're probably going to have to modify a few other things to make it work when the screen is resized, like resetting the height on the <code>.wrapper</code> class, like so:</p> <pre><code>@media (max-width:480px) { .wrapper { height:auto; } } </code></pre>
    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.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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