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

Chapter 15.  Formatting Text with Styles > Changing the Text's Background

Changing the Text's Background

The background refers not to the background of the entire page, but to the background of the specified tag. In other words, you can change the background of just a few paragraphs or words, by setting the background of those words to a different color.

To change the text's background:

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, and 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 an absolute distance from the top-left corner. 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