0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-04 16:24:22 +01:00
Bootstrap/site/docs/4.1/examples/sticky-footer/sticky-footer.css

29 lines
613 B
CSS
Raw Normal View History

/* Sticky footer styles
-------------------------------------------------- */
2014-02-04 13:56:42 +01:00
html {
position: relative;
2014-01-31 13:20:33 +01:00
min-height: 100%;
}
2014-02-04 13:56:42 +01:00
body {
2017-10-02 20:54:47 +02:00
margin-bottom: 60px; /* Margin bottom by footer height */
2014-02-04 13:56:42 +01:00
}
2014-02-27 10:15:53 +01:00
.footer {
2014-02-04 13:56:42 +01:00
position: absolute;
bottom: 0;
width: 100%;
2017-10-02 20:54:47 +02:00
height: 60px; /* Set the fixed height of the footer here */
2015-12-08 07:05:37 +01:00
line-height: 60px; /* Vertically center the text there */
background-color: #f5f5f5;
}
/* Custom page CSS
-------------------------------------------------- */
/* Not required for template or sticky footer method. */
.container {
width: auto;
max-width: 680px;
padding: 0 15px;
}