Backgrounds
CSS3 contains several new background attributes; and moreover, in CSS3, some changes are also made in the previous properties of the background; which allow greater control on the background element.
The new background properties added are as follows.
The background-clip property
The background-clip
property is used to determine the allowable area for the background image.
If there is no background image, then this property has only visual effects such as when the border has transparent regions or partially opaque regions; otherwise,the border covers up the difference.
Syntax
The syntax for the background-clip
property are as follows:
background-clip: no-clip / border-box / padding-box / content-box;
Values
The values for the
background-clip ...
Get Mastering HTML5 Forms now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.