HTML and CSS Reference
In-Depth Information
Figure 8-4.
The gradient is created by a narrow image being tiled horizontally
■
This technique of creating a gradient background relies on using an physical image.
Chapter 19
describes
how to generate gradients without an image.
Note
Setting the value of
background-repeat
to
repeat-y
tiles the background image along the vertical axis only.
This can be useful for creating a decorative border as in repeat-y.html (see Figure
8-5
).
Figure 8-5.
The border is created by tiling a background image along the vertical axis