For the most part, you'll be working in the Code view in this tutorial series. Please don't let that put you off. You can use the CSS panels to complete the work if that is your preferred workflow. By working in the Code view, you get to see the code. If you get to see the code, you learn the code. As far as code goes, CSS syntax is very easy to learn. The syntax is very consistent as you will see as you progress through this series.
CSS syntax is written as follows:
Selector {
property: value;
}
Remember that terminology. You will see it used a great deal in this series.
In this article you will be concentrating on becoming familiar with CSS and background images. For the sake of simplicity, you will therefore be working exclusively on the body element. Background images can, of course, be deployed on many elements. For now, working with the body element suits us just fine.
That said, open the repeat.html file in Dreamweaver Design view. Remember, you can create your pages as you work along or read through the code contained in the sample files linked from the beginning of the article. The following movie and steps demonstrate how to create a repeating background image:
Follow these steps:
Figure 2. The background image repeated across the body element
When you set a background image to repeat the image is only called once; the CSS rule then decides how it is to be handled. In this instance the CSS rule calls for repeat and no axis has been given. A lack of a declared axis dictates that the background image is repeated in the x- and y-axis by default. You will learn more about the x- and y-axis as you progress through this tutorial series.