mirror of
https://github.com/twbs/bootstrap.git
synced 2024-11-29 11:24:18 +01:00
4d36992180
* sticky footer side scrolling * static and fixed navbar more similar * min-height on static and fixed navbar examples to illustrate differences last two items fix #9702
39 lines
777 B
CSS
39 lines
777 B
CSS
/* Sticky footer styles
|
|
-------------------------------------------------- */
|
|
|
|
html,
|
|
body {
|
|
height: 100%;
|
|
/* The html and body elements cannot have any padding or margin. */
|
|
}
|
|
|
|
/* Wrapper for page content to push down footer */
|
|
#wrap {
|
|
min-height: 100%;
|
|
height: auto !important;
|
|
height: 100%;
|
|
/* Negative indent footer by its height */
|
|
margin: 0 auto -60px;
|
|
/* Pad bottom by footer height */
|
|
padding: 0 0 60px;
|
|
}
|
|
|
|
/* Set the fixed height of the footer here */
|
|
#footer {
|
|
height: 60px;
|
|
background-color: #f5f5f5;
|
|
}
|
|
|
|
|
|
/* Custom page CSS
|
|
-------------------------------------------------- */
|
|
/* Not required for template or sticky footer method. */
|
|
|
|
.container {
|
|
width: auto;
|
|
max-width: 680px;
|
|
padding: 0 15px;
|
|
}
|
|
.container .credit {
|
|
margin: 20px 0;
|
|
} |