Idocs Guide to HTML

Indenting a Section of the Page

To indent more than one paragraph we'll use the same style as we set in the previous example. Put this code in the <HEAD> section of your page:

<STYLE TYPE="text/css">
   padding-left: 50pt;
   padding-right: 50pt;

Then we'll use the indented class in a <DIV ...> element:

<DIV CLASS="indented">

Stuff In section


Which gives us an indented section like this:

Household Hazardous Waste

These items can be brought to the recycling center for redistribution. This is much better than throwing them out.
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.