Hanging Indent CSS

This thread suggest mixing the CSS text-indent and margin to create a hanging indent in a web page with cascading style sheets.

http://groups-beta.google.com/group/macromedia.dreamweaver/browse_thread/thread/12b24ea243cb4103/cb2eae652730165c?q=css+hanging+index&rnum=1&hl=en#cb2eae652730165c


"Add this to your style sheet:

.hindent{
        margin: 1em 2em;
        text-indent: -2em;

}

Apply the "hindent" class to the content:

<p class="hindent">text here ...

Gary"


Related Scribbles:
  • CSS Notes and Quick Examples


  • ID: 662
    Author:
    leonard
    Date Updated:
    2005-07-13 00:18:03
    Date Created:
    2005-07-13 00:18:03

    Edit

    Comments?
     >> Leonard Chan's Homepage  >> Scribble Web  >> Hanging Indent CSS
    leonard.lotus-land.ca is hosted by Perceptus Solutions Inc.