Keyword Values

Most properties also have values that are described in keywords. You’ll find keywords for each property in the property listing in the CSS Recommendation and throughout this book. Note that a keyword like normal may have different functions depending on the context of the property to which it is applied.

All properties in CSS 2.1 have the keyword inherit that forces the value of the property to be the same as that of the parent element. Most properties inherit by nature, but the inherit keyword is a tool for overriding assigned styles when necessary.

Get Web Design in a Nutshell, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.