+ 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 Respostas
+ 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 😁