HTML and CSS Reference
In-Depth Information
<link rel="stylesheet" href="wildflower.css" type="text/css" />
<div id="splashlogo">
<h1>Door County Wildflowers</h1>
<div id="trillium">
<img src="trillium.jpg" alt="Trillium" width="200" height="150" />
<div id="yls">
<img src="yls.jpg" alt="Yellow Lady Slipper" width="200"
height="150" />
<div id="pls">
<img src="pls.jpg" alt="Pink Lady Slipper" width="200" height="150" />
<div id="enter">
<a href="page1.html">Enter</a>
Save your file as splash.html in the wildflowers folder. Test your page in a browser and
compare it with the one shown in Figure 6.17.
The browser has displayed the page using normal flow—following the order of the
elements in the source code. Don't worry that your elements are not positioned as
they should be. Next, you'll configure the positioning properties as you create the
Figure 6.17
The splash page
before the styles are
Part 2—Code the External Style Sheet
Let's take a moment to consider what type of positioning is needed for the splash page:
the splash screen logo, the three images, and the link. Refer to the wireframe sketch
Search WWH ::

Custom Search