Style sheets : A newsthread: new formatting options
Contents ]
Dr Benton

Repetitions

Besides choosing an offset for the first pattern, you can also select a repetition mode.

By default, a pattern is tiled vertically and horizontally. But things can also be different.

To change the default tiling directions, use the background-repeat property with one of the following syntaxes:

  • background-repeat : repeat: the pattern is tiled in both directions.

  • background-repeat : repeat-x: the pattern is tiled horizontally.

  • background-repeat : repeat-y: the pattern is tiled vertically.

  • background-repeat : no-repeat: the pattern appears only once.

Be smart! Since the background-repeat: repeat setting is the default for background images, there is no need to specify it. So if you omit it, you will save time and reduce your file size.



  1   2   3   4