- By using the background shorthand property, we can specify all the background properties in one single property. This is called background shorthand property.
- For this, we use the shorthand property “background”.
- E.g.
body{
background: yellow url(‘tick.png’) no-repeat fixed right top;
}
- The order of the property values are:
- background-color.
- background-image.
- background-repeat.
- background-attachment.
- background-position.
- It is not necessary to have all the above properties while using the shorthand background property.
- Whatever property we have included in the shorthand property, they should be in the right order as listed above.