-
Book Overview & Buying
-
Table Of Contents
Mastering HTML5 Forms
By :
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 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.
The syntax for the background-clip property are as follows:
background-clip: no-clip / border-box / padding-box / content-box;
The values for the
background-clip property is as follows:
border-box: With this, the background extends to the outside edge of the border
padding-box: With this, no background is drawn below the border
content-box: With this, the background is painted within the content box; only the...
Change the font size
Change margin width
Change background colour