DEV Community

Discussion on: How do you reset CSS properties?

dzhavat profile image
Dzhavat Ushev Author

Using Normalize is quite handy. But this tool just makes sure you have consistent starting point between browsers. What about resetting a property during run time? Say you have set a background-color that you want to reset back to its default value? Would you use transparent, initial, unset or something else?

wrldwzrd89 profile image
Eric Ahnell

initial if I am reverting a change I made; inherit if I overrode the parent and wish to undo it, unset otherwise.