Skip to content

Instantly share code, notes, and snippets.

@andyvanee
Last active August 29, 2015 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save andyvanee/3b799ddd9bc17c2332b9 to your computer and use it in GitHub Desktop.
Save andyvanee/3b799ddd9bc17c2332b9 to your computer and use it in GitHub Desktop.
/* id styling has widespread effects */
#site a { padding-left: 10px; }
/* does nothing */
li a { padding-left: 10px; }
/* also does nothing */
.sidebar li:first a { padding-left: 10px; }
/* Another overly specific selector */
#footer a { color: red; }
.mybutton { color: white; background-color: blue; }
/* crap, now I have to add my-button to the footer. */
#footer a.mybutton { color: white; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment