Note that there are some explanatory texts on larger screens.

plurals
  1. POCSS Sticky Footers with left/right side different background color
    primarykey
    data
    text
    <p>I have the following HTML (and also at <a href="http://jsfiddle.net/pHXSJ/" rel="nofollow">http://jsfiddle.net/pHXSJ/</a>). In IE and Firefox, it works as expected. However, Chrome and Safari do not correctly position the footer at the bottom of the viewport. I have tried many things suggested here already, including implementing from cssstickyfooter.net. While those techniques work, they start to fail once I try to provide the (in the example) green side bar color. Note there is no content slated for those sidebars.</p> <pre><code> &lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;2012 test&lt;/title&gt; &lt;style&gt; html,body,form {height: 100%;} body,p{margin:0} div#wrapper {height:100%;background-color: transparent;} div#contentwrap {width:100%; position:relative; height:100%; top:0; padding-bottom: -4em;} div#content {top:0;position:relative;width:20em;min-height:100%;margin-left:auto;margin-right:auto;background-color:white; border-left: 2px yellow solid;border-right:2px yellow solid;} div#header {min-width:20em; width:100%; position:absolute; top: 0; height: 2em; background-color: silver;} div#header2 {min-width:20em; width:100%; position:absolute; top:2em; height: 1em; background-color: aqua;} div#footer {min-width: 20em; position: relative; clear: both; margin-top:-4em; height: 4em; background-color: red;} &lt;/style&gt; &lt;/head&gt; &lt;body style="background-color:green;"&gt; &lt;form&gt; &lt;div id="wrapper"&gt; &lt;div id="contentwrap"&gt; &lt;div id="content"&gt; &lt;div style="padding-top: 3.5em;"&gt; &lt;div id="lcol" style="float:left;position:relative; width:38%"&gt; &lt;p&gt;Left&lt;/p&gt; &lt;/div&gt; &lt;div id="rcol" style="float:right; position:relative; width:60%;"&gt; &lt;p&gt;Right 1 total of 35&lt;/p&gt; &lt;p&gt;Right&lt;/p&gt; &lt;p&gt;Right&lt;/p&gt; &lt;p&gt;Right&lt;/p&gt; &lt;p&gt;Right 5&lt;/p&gt; &lt;p&gt;Right&lt;/p&gt; &lt;p&gt;Right&lt;/p&gt; &lt;p&gt;Right&lt;/p&gt; &lt;p&gt;Right&lt;/p&gt; &lt;p&gt;Right 10&lt;/p&gt; &lt;/div&gt; &lt;div style="clear:both;position:relative;"&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;div id="header"&gt; &lt;div&gt;Main Header&lt;/div&gt; &lt;/div&gt; &lt;div id="header2"&gt; &lt;div&gt;Header level 2&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;div id="footer" style=""&gt; &lt;div&gt;Footer text&lt;/div&gt; &lt;/div&gt; &lt;/form&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    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