Text-Align

/* CSS CODE */

@import url(http://css-sandbox.wdfiles.com/local--code/admin:themes);

.boxes div{
border: 1px solid #000;
margin: 4px;
}
.left{ text-align: left; }
.center{ text-align: center; }
.right{ text-align: right; }
.justify{ text-align: justify; }

This is some text. As you may see, this box is set so that the text is aligned to the left. Here is yet another sentence. Here is yet another sentence. Here is yet another sentence. Here is yet another sentence. Here is yet another sentence. Here is yet another sentence.

This is some text. As you may see, this box is set so that the text is centered. Here is yet another sentence. Here is yet another sentence. Here is yet another sentence. Here is yet another sentence. Here is yet another sentence. Here is yet another sentence.

This is some text. As you may see, this box is set so that the text is aligned to the right. Here is yet another sentence. Here is yet another sentence. Here is yet another sentence. Here is yet another sentence. Here is yet another sentence. Here is yet another sentence.

This is some text. As you may see, this box is set so that the text is justified. Here is yet another sentence. Here is yet another sentence. Here is yet another sentence. Here is yet another sentence. Here is yet another sentence. Here is yet another sentence.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License