• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 16.  Layout with Styles > Changing the Background

Changing the Background

The background refers not to the background of the entire page, but to the background of a particular tag. In other words, you can change the background of any element—including images, form elements, and tables.

To change the background color or image:

1.
Type background:.

2.
Type transparent or color, where color is a color name or hex color.

3.
If desired, type url(image.gif), to use an image for the background.

If desired, type repeat to tile the image both horizontally and vertically, repeat-x to tile the image only horizontally, repeat-y to tile the image only vertically, or no-repeat to not tile the image.

If desired, type fixed or scroll to determine whether the background should scroll along with the canvas.

If desired, type x y to set the position of the background image, where x and y can be expressed as a percentage or as an absolute distance. Or use values of top, center, or bottom for x and left, center, and right for y.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint