A Pen by erikpantzar on CodePen.
Created
September 22, 2016 13:03
-
-
Save erikpantzar/0f99cbd3dd6ced5dbf08479583ad4c34 to your computer and use it in GitHub Desktop.
ALOObr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<nav></nav> | |
<article> | |
<h2>Vi jobbar for att alla ska minnas</h2> | |
</article> | |
<article> | |
<h2>Bara forskning kan stoppa alzheimers sjukdom</h2> | |
</article> | |
<article> | |
<h2>About alaaa la aa a aaa</h2> | |
</article> | |
<section></section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body, html { | |
display: block; | |
height: 100%; | |
width: 100%; | |
background: #666; | |
font: 4vh/5vh sans-serif; | |
} | |
h2 { margin: 0; } | |
nav { | |
height: 60px; | |
width: 100%; | |
background: #aaa; | |
display: block; | |
} | |
article { | |
height: 25%; | |
width: 100%; | |
background: pink; | |
display: block; | |
box-sizing: border-box; | |
position: relative; | |
h2 { | |
position: absolute; | |
top: 50%; | |
left: 20px; | |
transform: translate(10px, -50%); | |
} | |
} | |
article:nth-of-type(2) { | |
background: darken(pink, 5%); | |
} | |
article:nth-of-type(3) { | |
background: darken(pink, 10%); | |
} | |
section { | |
height: 90px; | |
width: 100%; | |
background: purple; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment