Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
the parts of CSS
/* CSS Anatomy */
/* At-rules, start with an @ and can take a number of forms */
@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 */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.