Skip to content

Commit

Permalink
Footer Placement Fix
Browse files Browse the repository at this point in the history
Footer now stays at the bottom
  • Loading branch information
patrickmfsd committed Jul 18, 2018
1 parent a1ea4a5 commit 0210e5f
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 11 deletions.
30 changes: 19 additions & 11 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,24 @@
<html>
{% include head.html %}
<body>
{% include header.html %}
<!-- Content -->
<div class="row animated fadeIn bodycontent">
<div class="col-md-10">
{{ content }}
</div>
</div>
<div class="col-md-12">
{% include footer.html %}
</div>
{% include include_js.html %}
<div id="wrapper">
<div id="header">
{% include header.html %}
</div>
<div id="content">
<!-- Content -->
<div class="row animated fadeIn bodycontent">
<div class="col-md-10">
{{ content }}
</div>
</div>
</div>
<div id="footer">
<div class="col-md-12">
{% include footer.html %}
</div>
</div>
</div>
{% include include_js.html %}
</body>
</html>
24 changes: 24 additions & 0 deletions _sass/_site.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,30 @@ body {
margin:0;
}

html,
body {
margin:0;
padding:0;
height:100%;
}

#wrapper {
min-height:100%;
position:relative;
}

#content {
padding:10px;
padding-bottom:60px; /* Height of the footer */
}

#footer {
position:absolute;
bottom:0;
width: 100%;
}


.navbar-toggler {
outline: none !important;
border: none !important;
Expand Down

0 comments on commit 0210e5f

Please sign in to comment.