HTML and CSS Reference
pattern with a
into two parts.
Splitting the image into two pieces, one that tiles and one that sits above
and covers up the tiling portion, can solve the problem:
background: #fff url(images/tiled_horizontal_bars.png)
repeat-x center top;
margin: 0 auto; /* center the block */
background: #fff url(images/the_dip.png) no-repeat center top;
When working with the background of the document, you have an added
challenge that you don't want to extend the content areas unnecessar-
ily and create scrollbars on the viewport. Don't forget that in addition to
the <body> element, <html> can also be styled and used as another layer
before you have a need for wrapper elements or other artificial hooks.