Skip to content

Instantly share code, notes, and snippets.

@tomhodgins
Created August 30, 2019 20:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomhodgins/f66db6145590975610a9bed7e687b86d to your computer and use it in GitHub Desktop.
Save tomhodgins/f66db6145590975610a9bed7e687b86d to your computer and use it in GitHub Desktop.
the parts of CSS
/* CSS Anatomy */
/* At-rules, start with an @ and can take a number of forms */
@at-rule;
@at-rule "";
@at-rule function();
@at-rule {};
@at-rule () {};
/* Selectors, the first part of a style rule before the declaration list */
selector {}
.class {}
#id {}
[attribute] {}
:pseudo-class {}
::pseudo-element {}
/* Declaration list, the {-block containing declarations */
{
property: value;
property: value;
}
/* Declaration, one assignment of a value to a property */
property: value;
/* Property, the name of the style thing you're setting */
property: ;
/* Value, the actual value you're setting to some property */
value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment