Background and Color PropertiesYou can also use CSS to specify backgrounds, images, and colors. What follows is a synopsis of these properties. background
This shorthand property lets you list the background properties (such as background-color , background-image , background-repeat , background-attachment , and background-position ) all at the same time. Of course, you can set these properties individually as well. background-attachment
This property indicates whether a background image is fixed or moves when as user scrolls the rest of the document. You can create some interesting effects by letting text "float" over a background this way. background-color
This property indicates the background color of an element. You set it to either a <color> value or the keyword transparent . The transparent setting makes the underlying color visible. background-image
This property sets an element's background image. One thing to keep in mind is that, when setting a background image, you might also want to set a background color in case the image is unavailable. background-position
You set this property to indicate a background image's starting position. For example, setting this property to 50% 50% starts it at the middle of the page. background-repeat
You use this property to specify whether a background image is repeatedcalled "tiling" the backgroundand, if so, how it is to be repeated. color
This property sets a foreground (text) color. You set it to a color value. |