Skip to content

Instantly share code, notes, and snippets.

@cameronscott137
Created September 22, 2015 18:51
Show Gist options
  • Save cameronscott137/817f274b26eb1e16d93c to your computer and use it in GitHub Desktop.
Save cameronscott137/817f274b26eb1e16d93c to your computer and use it in GitHub Desktop.
CSS Spacing Examples
/* Every selector should be comma-seperated and on its own line: */
//Right
.header,
.footer{}
//Wrong
.header, .footer{}
/* Every CSS block should be separated by a single empty line.*/
//Right
.header{
}
.footer{
}
//Wrong
.header{
}
.footer{
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment