HTML Tutorials

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.



Recommended Resources

web hosting tutorials
Credit Help
Search the Internet
Search Engine Help
Low Fat Lifestyle
Internet Traffic
Web Hosting
Web Design

Discount Hotel Reservations

Search The Internet


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.
About the author

All Rights Reserved, Copyright © Free-HTML-Tutorials.com 2003
A service of 1stHostWeb.com