+ 2
is the the inherit tag needed?
is is needed that we put âbackground-repeat: inheritâ for it to inherit the style of the parent tag, or does it inherit anyway without having to specify it??
3 RĂ©ponses
+ 11
It depends, not all styles are inherited by default. For example color will be inherited by the descendents but it's not the case for border property. đ
đĄ Source
https://developer.mozilla.org/en-US/docs/Web/CSS/inheritance
+ 3
The best time to use inherit is when you plan on changing it during execution. Then, change one element and they all change. It also makes sense to use when wanting to override tag or class based attributes.
+ 1
Thank youu đ