Learn HTML Code Tutorial Reference Guide

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">
<!--
.indented
   {
   padding-left: 50pt;
   padding-right: 50pt;
   }
-->
</STYLE>

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

<DIV CLASS="indented">

Stuff In section

</DIV>

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.
  • Household cleaners
  • Computers and computer accessories
  • Clothes
 
DARFUR
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial