+ 2
What difference does inherit do?
p.normal { font-variant: normal; } p.small { font-variant: inherit; }
2 Answers
+ 1
"Inherit" inherits the property from its parent element. That is, it'll be the same as its parent element's.
+ 1
using inherit means that the property for which the property inherit value is provided will use the value of the same property of the parent element.