CSS Inherit

 

CSS Inherit

Inherit property allows the content values to be taken directly from the parent element. This can be applied to all of the CSS properties individually or using “all” at once.

 

Eg:

 

Output: