Skip to content

Instantly share code, notes, and snippets.

@ivanteoh
Created July 5, 2020 06:41
Show Gist options
  • Save ivanteoh/496f3f23c2a2542b3c16a6989f7d16d0 to your computer and use it in GitHub Desktop.
Save ivanteoh/496f3f23c2a2542b3c16a6989f7d16d0 to your computer and use it in GitHub Desktop.
Misunderstand CSS Comma Syntax
div.entry-content h4, div.entry-content h5, div.entry-content h6,
div.entry-content p {
margin-bottom: 5px;
}
div.entry-content h4 {
margin-bottom: 5px;
h5 {
margin-bottom: 5px;
h6 {
margin-bottom: 5px;
p {
margin-bottom: 5px;
}
div.entry-content h4, h5, h6, p {
margin-bottom: 5px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment