Positioning An Element That Can Overflow Outside The Viewport Without Triggering A Scrollbar?
My content and body background colors are different and I would like to have a gradient to fade from one to the other. This effect is only necessary when the content is smaller tha
Solution 1:
You could position the footer as being fixed:
<divclass="footer"style="position: fixed"></div>
(or change the CSS accordingly).
Here's a fiddle for this: http://jsfiddle.net/kEXzs/17/
Post a Comment for "Positioning An Element That Can Overflow Outside The Viewport Without Triggering A Scrollbar?"