mirror of
https://github.com/djohnlewis/stackdump
synced 2024-12-04 23:17:37 +00:00
Fixed the footer at the bottom of the page regardless of the page height.
This commit is contained in:
parent
2979714a0c
commit
68106831ea
@ -1,3 +1,12 @@
|
||||
/* http://ryanfait.com/resources/footer-stick-to-bottom-of-page/ */
|
||||
* {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
html, body {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
/* don't want it to have a fixed position; so we'll override it */
|
||||
.topbar {
|
||||
position: absolute;
|
||||
@ -22,9 +31,16 @@
|
||||
padding-right: 3px;
|
||||
}
|
||||
|
||||
#wrapper {
|
||||
min-height: 100%;
|
||||
height: auto !important;
|
||||
height: 100%;
|
||||
margin: 0 auto -35px;
|
||||
}
|
||||
|
||||
/* leave enough gap for the topbar */
|
||||
#content {
|
||||
margin-top: 40px;
|
||||
padding-top: 40px;
|
||||
}
|
||||
|
||||
.search-container {
|
||||
@ -171,8 +187,12 @@
|
||||
float: right;
|
||||
}
|
||||
|
||||
#footer, #footer-push {
|
||||
height: 20px;
|
||||
}
|
||||
|
||||
#footer {
|
||||
margin-top: 50px;
|
||||
clear: both;
|
||||
border-top: solid 1px #999999;
|
||||
background-color: #CCCCCC;
|
||||
padding: 7px 10px;
|
||||
|
@ -30,12 +30,15 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="wrapper">
|
||||
<div id="content">
|
||||
<div class="container">
|
||||
{%- block body %}
|
||||
{% endblock -%}
|
||||
</div>
|
||||
</div>
|
||||
<div id="footer-push"></div>
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Stackdump is licensed under
|
||||
|
Loading…
Reference in New Issue
Block a user