>> English << | Português | По-русски | ZVON > Tutorials > CSS tutorial |
Intro / Search / ZVON |
>> Example 15 << | Prev | Next | Contents |
Text alignement can be specified with text-align property with values left, right, center, and justify.
>> Case 1 <<HTML Source | CSS stylesheet |
---|---|
<p class = "CCC">Center</p> <p class = "RRR">Right</p> <p class = "LLL">Left: This is an example of a long text. This is an example of a long text. This is an example of a long text </p> <p class = "JJJ">Justify: This is an example of a long text. This is an example of a long text. This is an example of a long text </p> | body {color:black; background-color: white}
.CCC {text-align: center} .RRR {text-align: right} .LLL {text-align: left} .JJJ {text-align: justify} |