Idocs Guide to HTML
back to Text Alignment

Setting the Alignment for the Entire Page

This is an example of centering all the text in the web page. This is done using this style rule:

<STYLE TYPE="text/css">
BODY {text-align:center}

Copyright 1997-2002 Idocs Inc. Content in this guide is offered freely to the public under the terms of the Open Content License and the Open Publication License. Contents may be redistributed or republished freely under these terms so long as credit to the original creator and contributors is maintained.