Bootstrap-4 - Sticky footer - Dynamische Fußzeile Höhe

Ich einen sticky footer auf meinen Seiten , aber ich don ' T haben eine bestimmte Höhe eingestellt für meine Fußzeile . Auf kleineren Bildschirmen - die Zeilen, ändern der Größe und Fußzeile wird länger .

Daher die Standard-sticky footer-Beispiel auf getbootstrap nicht funktionieren, da es erfordert eine Feste Fußzeile Höhe.

Irgendeine Möglichkeit dies umzusetzen ?

/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}
body {
  /* Margin bottom by footer height */
  margin-bottom: 60px;
}
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  /* Set the fixed height of the footer here */
  height: 60px;
  line-height: 60px; /* Vertically center the text there */
  background-color: #f5f5f5;
}


/* Custom page CSS
-------------------------------------------------- */
/* Not required for template or sticky footer method. */

body > .container {
  padding: 60px 15px 0;
}

.footer > .container {
  padding-right: 15px;
  padding-left: 15px;
}

code {
  font-size: 80%;
}
InformationsquelleAutor Sam.tuver | 2017-08-28
Schreibe einen Kommentar