CSS BACKGROUND IS used to define the background effects of an element.
The attribute background-color is used to specify the background color of an element. For example:
The attribute background-image is used to specify the background image of an element. For example:
If the image is smaller than the size occupied by the element, then the image is repeated down to occupy the full height of the element.
If we repeat the image to the right instead of down, put the value "repeat-x" in attribute "background-repeat". For example:
If you do not want the image to be repeated, ie only appears once you, put the value "no-repeat" in attribute "background-repeat". For example:
The attribute background-attachment is used to specify the position of the fund is fixed within the element or change the scroll position of the HTML page.
The default is
To specify a fixed value:
The attribute background-position is used to indicate the position of the fund within the element.
The default value is "left top". This defines
Some possible values are: left top, left center, bottom left, top right, center right, bottom right, center top, center center, center bottom
You can also specify a percentage of separation from "left top", for example 10% right and 20% down.
Instead of percentage, can also be expressed in pixels