about background attribute in css -
There are 5 features included in the background color, background-image, background-repeat, background-attachment and background-position.
But I do not understand what the background-attachment and background-position is?
Can someone give an explanation?
Edit : Background-repeat, background-attachment, and background-condition are useless if there is no background-image?
If you've ever seen a web page where the text on the page scrolls with scrollbar, but the background Stable, he
background-attachment: fix;
The background-condition defines how you present the image inside the background of the element. For example, if you have a droplet shadow image that repeats only at the bottom edge of your element, then you can use it:
background-repeat: repeat x; Background-position: bottom left;
Or if you had an image, you just wanted to show it in the bottom-right corner of your element:
Back-to-back: bottom Right;
Pixel value also accepts in the background-position format:
background-position: xpos ypos
Fine grain control for
Comments
Post a Comment