CSS Multi background property

CSSWeb DevelopmentFront End Technology

CSS Multi background property is used to add one or more images at a time without HTML code. We can add images as per our requirement.

A sample syntax of multi background images is as follows −

#multibackground {
   background-image: url(/css/images/logo.png), url(/css/images/border.png);
   background-position: left top, left top;
   background-repeat: no-repeat, repeat;
   padding: 75px;
}

The following are the values −

S.no
Values & Description
1.
background
Used to set all the background image properties in one section
2.
background-clip
Used to declare the painting area of the background
3.
background-image
Used to specify the background image
4.
background-origin
Used to specify the position of the background images
5.
background-size
Used to specify the size of the background images
raja
Published on 27-Apr-2018 13:05:50
Advertisements