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.

Specifying the Horizontal Alignment of a Paragraph 135<br />

8. Rewrite the border specification to be as concise as possible.<br />

Stay away from the treated trees for the<br />

period of time specified on the pesticide packaging. This can range from 12<br />

hours to a week. Keep your family and pets out of the area as well.<br />

9. Save the file, and then refresh the Internet Explorer display. Even though the HTML<br />

code changed, the screen should look the same.<br />

CLEAN UP Close the Notepad and Internet Explorer windows.<br />

Specifying the Horizontal Alignment of a Paragraph<br />

Alignment refers to the placement of a paragraph within its container. You can specify<br />

horizontal alignment in a style using the text-align attribute. You can apply alignment<br />

only to block-level elements, such as paragraphs, list items, headings, and so on. (A<br />

block-level element is one that occupies a complete paragraph or more.) The default<br />

alignment setting is left; the other choices are center, right, and justify, as shown in the<br />

following example:

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

Saved successfully!

Ooh no, something went wrong!