- From: fantasai <fantasai@escape.com>
- Date: Sat, 18 May 2002 10:38:40 -0400
- To: www-style@w3.org
Etan Wexler wrote: > > Fantasai wrote of the latest draft of the Text module > (<http://www.w3.org/TR/2002/WD-css3-text-20020515>): > > > Still no hanging indent? > > I can achieve a hanging indent with a negative value for the 'text-indent' > property. If I need to accommodate the jutting text (an exodent, to coin a > term), I can widen the padding. Am I missing something? a, b, c {display: block; padding: 3%; border: solid thin} a {padding-left: 2em; text-indent: -2em;} <a> <b> <c>This is some text that should have a hanging indent.</c> </b> </a> ___________________________________ | ____________________________ | | | ________________________ | | | | | | | | | |This is some text that | | | | | | should have a hanging | | | | | | indent. | | | | | |________________________| | | | |____________________________| | |___________________________________| text-indent inherits. text-indent only applies to inline content. padding does not inherit. padding applies to everything. Hence the problem above. There are two types of indentation: setting a block of content off from its surrounding content, and setting the first line of text off from the other lines within that block. the box properties are for the former; text-indent is for the latter. No matter where you put a bibliographic entry, if you're following standard format, the first line will have a hanging indent. The indentation is intrinsic to the content; it has nothing to do with its surroundings. See also: fantasai. "Re: text-indent/exdent (was "suggestion")", www-style (2001-07-07). message-id: 3B47BAE2.9BD1FB5E@escape.com http://lists.w3.org/Archives/Public/www-style/2001Jul/0068.html
Received on Saturday, 18 May 2002 10:35:01 UTC