Created
August 30, 2019 20:13
-
-
Save tomhodgins/f66db6145590975610a9bed7e687b86d to your computer and use it in GitHub Desktop.
the parts of CSS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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