Skip to content

Instantly share code, notes, and snippets.

@byrichardpowell
Created August 25, 2012 18:04
Show Gist options
  • Save byrichardpowell/3468636 to your computer and use it in GitHub Desktop.
Save byrichardpowell/3468636 to your computer and use it in GitHub Desktop.
Use dashes to separate words in class names
/* GOOD: */
.my-class { /* Styles */ }
/* BAD: */
.myClass { /* Styles */ }
.MyClass { /* Styles */ }
.my_class { /* Styles */ }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment