Thursday, 16 August 2012

css text align property tutorial


Introduction of Css Text Align property


Css text-align property is used to set alignment of text.

Css text-align property can set follwing values

  1. left this property value sets alignment of text to left.
        Syntex :
        selector
        {
           text-align:left;
        }
        
  2. right this property value sets alignment of text to right.
        Syntex :
        selector
        {
           text-align:right;
        }
        
  3. justify this property value sets alignment of text to justify. This way automatically sets lift and right margin for each line.
        Syntex :
        selector
        {
           text-align:justify;
        }
        
  4. Click to practice online example

No comments:

Post a Comment