Background Images
Used in a very different way to the img HTML element, CSS background images are a powerful way to add detailed presentation to a page.
To jump in at the deep end, the shorthand property background can deal with all of the basic background image manipulation aspects.
body {
background: white url(http://www.htmldog.com/images/bg.gif) no-repeat top right;
}
This amalgamates these properties:
background-color, which we have come across before.background-image, which is the location of the image itself.background-repeat, which is how the image repeats itself. Its value can be:repeat, the equivalent of a “tile” effect across the whole background,repeat-y, repeating on the y-axis, above and below,repeat-x(repeating on the x-axis, side-by-side), orno-repeat(which shows just one instance of the image).
background-position, which can betop,center,bottom,left,right, a length, or a percentage, or any sensible combination, such astop right.