Skip to content

Commit

Permalink
Footer sticks to the bottom
Browse files Browse the repository at this point in the history
  • Loading branch information
MihajloNesic committed Mar 18, 2019
1 parent 29662d7 commit 8ffad8e
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion _includes/footer.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<footer><span>@2015 - Emerald</span></footer>
<footer class="footer"><span>@2015 - Emerald</span></footer>
4 changes: 4 additions & 0 deletions _posts/2019-03-18-small-text.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: Small text
---
This is an example of a blog post with small amount of text.
21 changes: 21 additions & 0 deletions _sass/layout.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
/* -- General Layout -- */

/* Required for footer to stick to the bottom */
html, body {
height: 100%;
}

/* Navigation */

#nav, #nav-left {
Expand Down Expand Up @@ -253,3 +258,19 @@ footer {
text-align: center;
padding: 0.6667em 0;
}

#wrap {
min-height:100%;
position:relative;
padding-bottom: 105px;
}

.footer {
padding: 25px 0;
background-color: $main-color;
color: $background-color;
text-align: center;
position: absolute;
width: 100%;
bottom: 0;
}

0 comments on commit 8ffad8e

Please sign in to comment.