Skip to content

Instantly share code, notes, and snippets.

@kyleondata
Last active October 11, 2015 05:58
Show Gist options
  • Save kyleondata/3814165 to your computer and use it in GitHub Desktop.
Save kyleondata/3814165 to your computer and use it in GitHub Desktop.
/* gets any input that is type submit */
input[type='submit']{}
/* gets the first child of an element */
table:first-child{}
/* gets the second element that comes after the first,
in this example any hr tags that follow a div tag */
div + hr{}
/* gets any element that has this attribute set no matter the value */
img[src]{}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment