Idocs Guide to HTML
back to Indenting the Whole Page

Example of Indenting the Entire Page

This is an example of indenting everything in the entire page. The right and left sides of this page are indented 100 pixels. To do this, we add this style code to the <HEAD> section of the page:

<STYLE TYPE="text/css">
<!--
BODY
   {
   padding-left: 100px;
   padding-right: 100px;
   }
-->
</STYLE>

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.