I want place my footer on bottom screen like position: fixed and bottom 0 if there is not enough content. But when there is more content I want the footer after the content and not fixed at bottom.
HTML
<div id="header">Header</div>
<div id="content">
Bla
</div>
<div id="footer">sdfasdf</div>
CSS
#header { background-color: gray; padding: 10px;}
#footer { background-color: black; padding: 10px; color:white;}
In this case you see in the jsfiddle I want the footer at bottom.
Is there a way to achieve this without JS?