CSS Rules for Color, Images, and Repeats

Use style sheets to control the placement of images on the web page with background-repeat property.
color: Defines the text color. Use color word, hex codes or rgb.
P {color: #ff00ff} or f0f This text is red
background-color: Defines the background color of an element. transparent (defalut)
P {background-color:#ffccff} This is the Background color
background-image:url()Defines the background image for the entire background none(default)Any valid URL of the image

<td style="background-image: url(images/smile.gif)">
Background Image</td></tr>

Background Image
background-repeat: no-repeat Defines the direction that the background image is tiled. no-repeat, Background image does not repeat

Horizontal Repeat
background-repeat:repeat-x
Image repeats horizontally
Vertical Repeat
background-repeat:repeat-y
Image repeats vertically

background-repeat:repeat-y;
background-image:url(images/smile.gif)
Background-attachment property specifies whether the background image will scroll as the text content scrolls. The values are scroll (default) and fixed.
body {background-image:url(hi.gif); background-attachement:fixed}

Web Design with XHTML Part II
Doris Cuffey, Instructor