- From: David Chambers <david.chambers.05@gmail.com>
- Date: Wed, 22 Sep 2010 22:07:31 +1200
- To: fantasai <fantasai.lists@inkedblade.net>
- Cc: www-style@w3.org
Received on Wednesday, 22 September 2010 10:08:04 UTC
Thanks very much for your responses, fantasai. Expanding the functionality
of the text-indent property sounds like a very promising possibility!
David
On 22 September 2010 21:58, fantasai <fantasai.lists@inkedblade.net> wrote:
> On 09/21/2010 05:16 AM, David Chambers wrote:
>
>> I recently wondered whether it's possible to style a block of text
>> *contained within a single element* such that wrapped lines are
>> indented.
>>
>
> Good question. A :line pseudo-element is a bit overkill for solving
> this problem (and unlikely to get much traction, given how difficult
> :first-line is to spec and implement). But, I'm pretty sure we could
> solve your problem with better options for the text-indent property!
>
> e.g.
>
> pre {
> text-indent: 2em hanging each-line;
> }
>
> We already have "text-indent: 2em hanging" proposed in CSS3 Text.
> http://www.w3.org/TR/css3-text/#text-indent
>
> ~fantasai
>
Received on Wednesday, 22 September 2010 10:08:04 UTC