Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Text Alignment in CSS

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 219
    Comment on it

    the horizontal alignment of a text can be set by using this property

    we can aligned the Text to center or to the left or right, or justified.
    Example

    h1 {
        text-align: center;
    }
    
    p.date {
        text-align: right;
    }
    
    p.main {
        text-align: justify;
    }
    </style>
    </head>
    <body>
    
    <h1>CSS text-align Example Evon technologies</h1>
    <p class="date">oct, 2015</p>
    <p class="main">work culture is very important for an employee to learn and enhance his personality
    Just remeber that learning and earning is the most essential element of growth in an organisation  .'</p>
    
    
    </body>
    </html>
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: