CSS background image

CSS background image is used to define the image for the background of a block.



This is the HTML paragraph inside the div. The div contains some background image. This background image has fixed attachment. The background showing the nature image.

CSS background image values list

Sr. No.valueDescription
1url(image url location)Used to make background image. The value for this is the location of the image.
2noneUsed to make no background image.
3initialUsed to define as the property initial value.
4inheritUsed to define the computed value of property on the elements parent.
5unsetUsed to set all the properties to their parent value if inheritable.


The CSS background specification defines in this official webpage

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.