HTML and CSS Reference
In-Depth Information
Lesson requirements
You will need your previously created CSS file, a text editor, and a web browser.
step-by-step
1.
Open your text editor.
2.
From the Lesson_10 folder, open tpa.html .
3.
Place your cursor after the font declaration in the CSS rule for body and press Enter (Return).
4.
Enter the following code:
background: #000 url(images/tpa_bg.jpg) repeat-x center top;
5.
Save your file.
6.
In your browser, open tpa.html to review the background image, as shown in Figure 10-9.
FiGure 10-9
Search WWH ::




Custom Search