1. Home
  2. Computing & Technology
  3. Web Design / HTML

How do I indent a lot of text?

By , About.com Guide

Question: How do I indent a lot of text?
Answer:

Indenting large chunks of text can be done in two different ways:

  1. Using Cascading Style Sheets
    CSS allows you to set all paragraphs on a page, or just specific ones to be indented the exact amount of space you would like. Here's how to indent every paragraph on the page 10 pixels (put this in the <head> of your HTML document):
    <style>
    <!--
      p {     margin-left : 10px;
      }
    -->
    </style>
  2. Using the <blockquote></blockquote> tag
    In most browsers, this tag indents elements within it on both sides of the browser window.
    This technique has been deprectated in favor of style sheets.

More about CSS margin Property
More about <blockquote></blockquote>
Help with Cascading Style Sheets

Explore Web Design / HTML
About.com Special Features

The Best Web Trends of the Decade

A look back at the best innovations, ideas and technologies over the last 10 years, More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Web Design / HTML
  4. About.com Web Design A to Z
  5. FAQs
  6. How do I indent a lot of text?>

©2010 About.com, a part of The New York Times Company.

All rights reserved.