Search DaTutorials:  
HOME
CSS Tutorials
Articles
Basics
Backgrounds
Customizing
Formatting
General
Layouts
Link Effects
Navigation
Positioning
Rollovers
Text Effects
Search For a Tutorial
CSS Reference

Text Alignment


Syntax: text-align: <value>
Possible Values: left | right | center | justify
Initial Value: Determined by browser
Applies to: Block-level elements
Inherited: Yes

The text-align property can be applied to block-level elements (P, H1, etc.) to give the alignment of the element's text. This property is similar in function to HTML's ALIGN attribute on paragraphs, headings, and divisions.

Some examples follow:

H1          { text-align: center }
P.newspaper { text-align: justify }

Copyright © 1998 Liam Quinn. All rights reserved.

     Credit Cards | Web Advertising | Vegas Hotel | Free Advertising | MBNA credit card
Home     Link To Us     Ad With Us     Contact Us     Tell A Friend     Affiliates     Blog     MsOfficeHelp