inherit
noun
say it: “in-HAIR-it” /ɪnˈhɛrɪt/
A CSS keyword that makes a property take its parent element's value, even for a property that doesn't pass down on its own.
What does the inherit keyword do?
inherit takes the property's value from the parent element.
.footer a { color: inherit; } /* links match the footer text */
In a sentence
- “Buttons ignored the page's font, so I wrote font: inherit and they finally matched the rest of the site.”
Level: Freelancer · More CSS terms at this level
Updated