10.07.2017 Views

246996016-HTML5-Step-by-Step

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

148 Chapter 9<br />

Perhaps that’s the look you want; but perhaps not. However, the example could certainly<br />

be improved <strong>by</strong> changing the placement of the Recent Articles heading. It should be at<br />

the left margin, aligned with the company name, and not wrapped around the graphic.<br />

To move text down vertically until the space occupied <strong>by</strong> the graphic becomes “clear,”<br />

use the clear style rule. You apply this rule to the text’s tag, not to the graphic’s tag. For<br />

example:<br />

Recent Articles<br />

In this exercise, you will move the top horizontal line, and everything following it, below<br />

the graphic.<br />

SET UP Use the index.htm file in the practice file folder for this topic. This file is<br />

located in the Documents\Microsoft Press\<strong>HTML5</strong> SBS\09Graphics\ClearingImages<br />

folder. Open the index file in Notepad and in Internet Explorer.<br />

Important If you copy the practice files for this exercise to some other location, you must also<br />

copy the default.css file and the images folder for the practice files to work properly.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!