CSS has hundreds of properties, and the parts that trip people up are the metadata: does it inherit, what is the initial value, what value syntax is allowed, and can it animate. This reference puts those facts next to each common property so you do not have to guess.
How it works
Every entry records the property’s formal value syntax in CSS grammar notation, its initial value, what elements it applies to, whether it is inherited, the computed value, and whether it can be animated or transitioned. The search box matches the name, description, group, and syntax, and the group selector limits the list to a related set such as Flexbox or Typography.
The value syntax uses standard CSS notation. A single | means one of the
options, || means the options may appear in any order, {1,4} is a repetition
count, and # denotes a comma-separated list. Types in angle brackets such as
<length-percentage> reference value definitions from the spec.
Tips and notes
- Inheritance is the quickest win to memorise: most typography properties inherit, most box and layout properties do not.
- A unitless
line-height(a number) inherits as a multiplier and is almost always better than a fixed length, which inherits as a computed pixel value. - For animation performance, prefer
transformandopacity; both are animatable and avoid triggering layout.
This reference covers commonly used properties rather than the entire CSS specification. For exhaustive coverage, follow the spec or MDN links for the property in question.