CSS to add sticky footer (footer position is fixed at the bottom of the page independent of page height).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
html { position: relative; min-height: 100%; } body { /* Margin bottom by footer height */ margin-bottom: 60px; } footer { position: absolute; bottom: 0; width: 100%; /* Set fixed height of footer */ height: 60px; } |