HTML and CSS Reference
In-Depth Information
<h3>Explore the beauty <br />of Door County Wildflowers....</h3>
<p>With five state parks, tons of county parks, and private
nature sanctuaries, Door County is teeming with natural areas
for you to stalk your favorite wildflowers.</p>
<div id="footer">
Copyright &copy; 2010 Door County Wild Flowers<br />
Last Updated on 06/10/10
Save your page as threecolumn.html in your wildflowers3 folder. Test the page in a
browser. Your display will not look like Figure 7.13 since you have not yet configured
the CSS. The top of your page should look similar to the page shown in Figure 7.14.
Figure 7.14
The three-column
page before CSS is
Part 2—Code the Basic CSS
For ease of editing, in this Hands-On Practice you will code the CSS as embedded styles
in the header section of the Web page. However, if you were creating an entire Web site
you would most likely use an external style sheet as you did in Hands-On Practice 6.5.
Launch Notepad and open threecolumn.html. Let's take a moment to consider the main
elements used on the page shown in Figure 7.13: logo, left column, right column, center
column, and footer. The left column will contain a navigation area and a small image.
The center column will contain paragraphs, a heading, and a right-floating image. The
right column will contain a series of headings and news items. Locate these areas on the
sketch in Figure 7.12. Notice also that the same font is used throughout the page and the
page begins right at the browser margin. Launch Notepad and open your threecolumn
.html file. In the header section of your Web page document, add a tag to begin the
embedded styles:
<style type="text/css">
Search WWH ::

Custom Search