This site has been taken over by the staff of www.ASPDeveloper.Net

Please report errors to suggest@aspdeveloper.net

BizTalk Utilities CV ,   Jobs ,   Code library  
 
 

The text-align property (CSS Reference)

Introduction

The text-align property is used to align the text with one of the following values: left, right, center justify.

Example

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"

     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head><title>text-align Demonstration</title>

<style type="text/css">

p.left

{

    text-align:left;

    color:red;

}

p.center

{

    text-align:center;

    color:blue;

}

p.right

{

    text-align:right;

    color:green;

}

p.justify

{

    text-align:justify;

}

</style>

</head>

<body>

<h1><p>text-align demonstration</p></h1>

<p class="left">I am left.</p>

<p class="center">I am in center.</p>

<p class="right">I am right.</p>

<p class="justify">I am justified.</p>

</body>

</html>

Output

Values

Name:

Description:

center

This value is used to align the text to center.

justify

This value is used to justify the text. It adds white spaces between the words and characters to justify both left and right side. This is the style used in newspapers.

left

This value is used to align the text to the left side.

right

This value is used to align the text to the right side.

 

Recent Jobs

Software Specialist, Linux - Finlan
Linux Core Technical Project Manage
Graphics designer at Tanzania. Expe
Integration Specialist Needed - Wor
Virtualization Server Infrastructur

View all Jobs (Add yours)
View all CV (Add yours)






    Email TopXML  

Front Page Daily Stuff TopXML Forum XML blogs XML Newsgroups BizTalk Biztalk Utilities Biztalk Utilities Tutorial B2B SAP XML Microsoft .NET Dotnet System XML Soapformatter SQLXML XMLserializer XQuery PHP PHP SimpleXML PHP XML Dom PHP XML RPC PHP XSLT Java Java Java XML Xalan Microsoft ASP ASP Schemas XML SQL Server XML XMLDom XSL XSL Tutorial XSLT Stylesheets General Javascript CSS XHTML WAP