Lipīga kājene - CSS-triki

Anonim

Lieliski darbojas, ja kājenei varat piestiprināt fiksētu augstumu.

 Content! I'm the Sticky Footer. 
* ( margin: 0; ) html, body ( height: 100%; ) .page-wrap ( min-height: 100%; /* equal to footer height */ margin-bottom: -142px; ) .page-wrap:after ( content: ""; display: block; ) .site-footer, .page-wrap:after ( height: 142px; ) .site-footer ( background: orange; )

Skatiet Krāsa Koijera (@chriscoyier) Pen Sticky Footer vietnē CodePen.