unset

noun

say it: “un-SET” /ʌnˈsɛt/

A CSS keyword that clears a property's value: a property that normally passes down takes the parent's value, and one that doesn't goes back to its starting value.

What does the unset keyword do?

unset acts like inherit for properties that normally inherit, and like initial for the rest.

.reset-link { color: unset; text-decoration: unset; }

In a sentence

  • “I used all: unset on the button, so it dropped its built-in look and picked up the text style around it.”

Level: Freelancer · More CSS terms at this level

Updated