background CSS Property

background CSS Property is used to define different background properties in a single setting.


Syntax

Output

This is the background CSS example paragraph


background CSS Property values list

Sr. No.valueDescription
1url(image url location)Used to make background image. The value for this is the location of the image. See background-image property for this
2noneUsed to make no background image.
3repeat styleUsed to make background image repeat or not repeat. The value of this is a repeat or no-repeat. See the background-repeat property for this
4sizeUsed to set background image size. See background-size property for this
5attachmentUsed to make the background image attachment. To know more detail, See background-attachment property for this.
6colorUsed to give background color. See background-color property for this
7initialUsed to define as the property initial value.
8inheritUsed to define the computed value of the property on the elements parent.
9unsetUsed to set all the properties to their parent value if inheritable.

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.