Create a website RSS feed

Text Alignment

Text Alignment

Last update on: 05-18-2008
Text alignment is the capability to arrange a block of text, such as a heading or a paragraph, so that it's aligned against the left margin (left justification, the default), aligned against the right margin (right justification), or centered.
some examples:
<h1 align="left">Serendipity Products</h1>
<div align="right">
<h2><a href="who.html">Who We Are</a></h2>

<h2><a href="products.html">What We Do</a></h2>
<h2><a href="contacts.html">How To Reach Us</a></h2>

</div>

<div style="text-align: left">Left aligned text.</div>
<div style="text-align: right">Right aligned text.</div>

<div style="text-align: center">Centered text.</div>
<div style="text-align: justify">This text is justified. I'm adding some extra
text for padding so that you can see exactly how the justification works. As you
can see, the text is expanded so that it is aligned with both the left and right
margins.</div>



Formatting Text's lessons:

Character-Level Elements
Formatting Using CSS
Preformatted Text
Horizontal Rules
Line Break
Addresses
Quotations
Text Alignment
Fonts And Its Attributes
Special Characters

Banner HomeServices Contact |  ©2009 http://www.iteachweb.net/