html - How to stick the footer to bottom? -
i'm trying keep footer bottom, did in way:
#footer {     background-color: #3a3a3a;     border-top: 1px solid #222222;     font-size: 11px;     overflow: auto; }  #footer #footer-content {     padding: 10px 15px;     display: inline-block;     float: left; } this html:
<div id="footer">    <div id="footer-content">       ... now in page footer fixed correctly, in other page i've lot of space between controls , footer, in few words there lot of space vertically. happean footer instead of remain fixed footer go @ bottom of controls, if resize window footer return @ bottom correctly other page. don't understand why, wrong in css?
have tried position: fixed?
fiddle: https://jsfiddle.net/ar2smzyr/
css:
.footer {   background: red;   height: 100px;   position: fixed;   bottom: 0;   width: 100%; } html:
<div class="footer">   content </div> 
Comments
Post a Comment