Skip to content

Commit

Permalink
Make position of featured-posts heading absolute at the bottom
Browse files Browse the repository at this point in the history
Fixes #17
  • Loading branch information
mschaeffner committed Mar 27, 2018
1 parent 2c50a4e commit 2a46acb
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions assets/css/_sass/_home.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
.featured-posts {
height: 400px;
margin: 5px 10px 10px;
padding: 10px;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
position: relative;
}
.featured-posts h2 {
bottom: 0;
margin: 0;
padding: 10px;
position: absolute;
}
.featured-posts h2 span {
display: inline-block;
Expand All @@ -14,7 +20,6 @@
background: rgb(0, 0, 0); /* fallback color */
background: rgba(0, 0, 0, 0.7);
padding: 10px;
margin-top: 320px;
}
.featured-posts span a {
color: white;
Expand Down

0 comments on commit 2a46acb

Please sign in to comment.