CSS fundamentals
Start here. Almost every confusing CSS moment, such as a style that will not apply or a box that is the wrong size, traces back to the terms in this group.
Not yet reviewedLevel
Terms
- BeginnerSelectorsA selector picks which elements a style rule applies to.Not yet reviewed
- IntermediateThe cascadeThe cascade is how the browser decides which rule wins when several target the same element.Not yet reviewed
- IntermediateSpecificitySpecificity is a score for how targeted a selector is.Not yet reviewed
- BeginnerInheritanceSome properties pass from a parent to its children by default, such as text color and font family.Not yet reviewed
- BeginnerBox modelEvery element is a rectangle made of content, padding, border and margin, from the inside out.Not yet reviewed
- BeginnerDisplayThe display property controls how an element takes part in layout.Not yet reviewed
- BeginnerCSS unitsCSS lengths come in absolute units like px and relative units like rem, em and percent.Not yet reviewed
- BeginnerColor formatsColors can be written as hex codes, rgb, hsl and newer formats.Not yet reviewed
- BeginnerTypography in CSSText style is set with properties like font-family, font-size, font-weight, line-height and letter-spacing.Not yet reviewed
- IntermediatePseudo-classes and pseudo-elementsPseudo-classes style an element in a particular state, like :hover or :focus.Not yet reviewed
Documentation
CSS cascading and inheritance
The reference on how conflicting rules are resolved and how values are inherited.
Know more about CSS fundamentals?
Suggest a term, a change, or a resource. No account needed.
Suggest a change