Learn More

Tuesday, August 9, 2011

CSS Background

css logo
This time we will discuss the background css. With css background, then your blog or website we will have an interesting background. Depending on individual taste. There are eight properties owned by the css background. Among them is the color, position, size, repeat, origin, clip, attachment, image.


Many programmers separate the eighth number of the CSS background properties to simplify the writing. Here are the syntax's


For color there are six in the usual way to write the value of color. That is by using Hexadecimal, RGB, RGBA, HSL, HSLA, or by giving the name of the color. Or you can give transparent for the value if you want to get transparent background. To see full color name and hexadecimal code you can access it from http://w3schools.com/cssref/css_colornames.asp.

For images, we can put a background image on a blog or website. There are three property values of the image, url (to determine the address of the image), none (if it does not contain image), inherit (if you want the background image should be inherited from the parent element). For position, we can determine the location of the background. For size, an image used as background we can specify the size with ease. To repeat, we can display a background image over and over again. The origin property specifies what the background-position property should be relative to. For the clip, we can specialize area of the background paint. As for attachment, property sets whether a background image is fixed or scrolls with the rest of the page. To see complete property values of background, we recommend to read background properties from w3c. Because they responsible for CSS development.

We hope you understand what we write. Now you have the ability to change the background of your blog or website. For more complete, try the code below



You can try it directly via:

Post a Comment