Skip to content

Instantly share code, notes, and snippets.

@erikpantzar
Created September 22, 2016 13:03
Show Gist options
  • Save erikpantzar/0f99cbd3dd6ced5dbf08479583ad4c34 to your computer and use it in GitHub Desktop.
Save erikpantzar/0f99cbd3dd6ced5dbf08479583ad4c34 to your computer and use it in GitHub Desktop.
ALOObr
<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>
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