Skip to content

Instantly share code, notes, and snippets.

@exarcheia-web
Last active November 23, 2016 06:13
Show Gist options
  • Save exarcheia-web/e1356c4c8ff382e393e0359db4e46d03 to your computer and use it in GitHub Desktop.
Save exarcheia-web/e1356c4c8ff382e393e0359db4e46d03 to your computer and use it in GitHub Desktop.
Basic flexbox 3-column example
/* Basic flexbox 3-column example */
body, p {
margin: 0;
}
.content {
display: flex;
justify-content: space-between; /* center, flex-start (default), flex-end, space-around, space-between */
align-items: stretch; /* center, flex-start, flex-end, stretch (default), baseline */
background: rgba(0,0,0,0.3);
color: white;
font-family: Georgia, serif;
}
.aside-main {
width: 20%;
background: #343434;
padding: 15px;
}
.article-main {
width: 60%;
background: #898989;
padding: 15px;
}
.aside-extra {
width: 20%;
background: #565656;
padding: 15px;
}
<main class="content">
<aside class="aside-main">
1
</aside>
<article class="article-main">
<p>“Art,” Jeanette Winterson observed in a terrific conversation about art and the human spirit, “pulls people up short. It says, don’t accept things for their face value; you don’t have to go along with any of this; you can think for yourself.” This function of art as a force of wakefulness — of wokefulness — is particularly vital and vitalizing at times of injustice and oppression, under regimes built on ideologies of mass coercion.</p>
</article>
<aside class="aside-extra">
3
</aside>
</main>
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment