Thursday 19 July 2012

How to Align the text in css


<!DOCTYPE html>
<html>
<head>
<style type="text/css">
h1 {text-align:center;}
p.date {text-align:right;}
p.main {text-align:justify;}
</style>
</head>

<body>
<h1>CSS text-align Example</h1>
<p class="date">june, 2009</p>
<p class="main">Cruise was born in Syracuse, New York, the son of Mary Lee (née Pfeiffer), a special education teacher, and Thomas Cruise Mapother III (died 1984),[6] an electrical engineer.[7] Cruise has three sisters, Lee Anne, Marian, and Cass'</p>

</body>

</html>

0 Responses to “How to Align the text in css”

Post a Comment