I have a global font-size in place, and an element which uses a different one.
body {
font-size: 16px;
}
.parent {
font-size: 14px;
}
Inside the .parent
element I have several children, which I'd like to use the font-size: 16px
from the body. Is there a way to "skip" an inheritable declaration. Something like:
font-size: 14px !dont-propagate;
Would be pretty nice to have.
Of course I'm aware of the workarounds such as styling the children to have font-size: 16px
, or putting only the text parts of .parent
into their own container and giving that the smaller font size. Think of this trivial example of something much bigger, which makes those options less desirable.