I can not that the fur was at the bottom of the page when a stub appeared ... Example here JSFIDDLE
html:
<body> <div class="cap"> cap<br>cap<br>cap<br>cap<br>cap<br>cap<br>cap<br>cap<br>cap<br>cap<br>cap<br>cap<br>cap<br>cap<br>cap<br>cap<br>cap<br>cap<br>cap<br>cap<br>cap<br>cap<br>cap<br>cap<br>cap<br>cap<br>cap<br>cap<br>cap<br>cap<br>cap<br>cap<br>cap<br> </div> <div class="page">page</div> <div class="footer">footer</div> </body> css:
html, body { height: 100%; } .cap { position: absolute; } .page { height: auto; min-height: 100%; padding-bottom: 50px; background-color: #ccc; text-align: center; } .footer { height: 50px; margin-top: -50px; background-color: #bbb; text-align: center; } If you scroll down the page, then .cap climbs over the side of the footer (and you also need the footer to be at the bottom of the page), .cap should be on top of the page ...
.capposition assigned toposition: absoluteand it will simply go to the next so-called layer, and will be on top of other blocks ...) And this also prevents your footer. Try a fixed position or something ... - E1mirpostion: absoluteto remove and make a separate block element, thisposition: absoluteterrible thing, it’s difficult to work with, especially if you make up site not only for the screen with one resolution .. - E1mir