about background attribute in css -


background: # 777777 scroll no repeat 0 0;

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

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -