Skip to content

Instantly share code, notes, and snippets.

@CarlRevell
Last active August 29, 2015 14:08
Show Gist options
  • Save CarlRevell/3920ab01079aec6e21ad to your computer and use it in GitHub Desktop.
Save CarlRevell/3920ab01079aec6e21ad to your computer and use it in GitHub Desktop.
/*source: <http://alistapart.com/article/axiomatic-css-and-lobotomized-owls> */
* + * {
margin-top: 1.5em;
}
/* Or for book-like justified paragraphs… */
p {
text-align: justify;
}
p + p {
margin-top: 0;
text-indent: 2em;
}
/*You can also employ a little class-based object orientation. like…*/
.compact * + * {
margin-top: 0.75em;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment