W3C home > Mailing lists > Public > www-style@w3.org > June 2002

Re: Hanging indent

From: Coises <Randy@coises.com>
Date: Tue, 04 Jun 2002 13:09:43 -0700
To: www-style@w3.org
Message-ID: <l37qfuc7aiek3j0jmkhiuv442aq2ekrdto@4ax.com>

[Tue, 4 Jun 2002 10:31:50 -0400 ] Peter Foti (PeterF):
>Interesting.  Is the solution that you propose something like this:

Your samples show exactly what I meant.

The text-indent represents the indentation of the first line relative to
any other lines in the block; the content edges define the boundaries
within which the text (including first line) is formatted.

>#sample1 { text-indent: 2em; }
>#sample2 { text-indent: 0em; }
>#sample3 { text-indent: -2em; }
>
>  +-----------------+
>  |  This is a text |
>  |indent of 2em.   |
>  |Only line 1 is   |
>  |indented.        |
>  +-----------------+
>  
>  +-----------------+
>  |This is a text   |
>  |indent of 0em.   |
>  |Line 1 is flush  |
>  |with the rest.   |
>  +-----------------+
>  
>  +-----------------+
>  |This is a text   |
>  |  indent of      |
>  |  negative 2em.  |
>  |  Every line but |
>  |  line 1 is      |
>  |  indented.      |
>  +-----------------+
-- 
Randall Joseph Fellmy aka Randy@Coises.com
Received on Tuesday, 4 June 2002 16:09:13 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:14 GMT