Layering multiple background images
The background of a box can have multiple layers in CSS3. The number of layers is determined by the number of comma-separated values in the ‘
Here’s a example:
Here’s the code for this:
The background of a box can have multiple layers in CSS3. The number of layers is determined by the number of comma-separated values in the ‘
background-image
’ property. Note that a value of ‘none
’ still creates a layer.
Here’s a example:
Here’s the code for this:
- width: 500px;
- height: 150px;
- background-image: url(boll.png), url(VectorBackgrounds11.jpg);
- background-position: center bottom, left top;
- background-repeat: no-repeat;
No comments:
Post a Comment