Is It Safe To Use Inherit In Css Font-family
I want to use a special font for some HTML element text. But I want to set parent font style when failed rendering special font on browser. Example CSS code: .SmoothText { font
Solution 1:
inherit
can only exist by itself as a value for any property. What you have is invalid.
If you want to add a font family to a parent font stack, you will need to specify the parent font stack again.
Solution 2:
inherit
is a property value which means that property takes its value from its parent.
IF you want to add font family to the parent ,font stack has your solution. See this Link
Post a Comment for "Is It Safe To Use Inherit In Css Font-family"