Background repeat part 2
Setting the Value to Inherit
When you set the background-repeat property to inherit, it will take the same specified value as the property for the element's parent.
For example, we set the body background repeat only horizontally. If we set some paragraph background-repeat values to be inherited, they will take the same property value as the body element.
The CSS:
Result:
Tap Try It Yourself to play around with the code!
Comments
Post a Comment