On Oct 8, 2006, at 11:23 PM, Tony Martin wrote: > is there a reason why first-line does not allow change of text align?
The text-align property can only be applied to *block-level* elements <http://www.w3.org/TR/CSS21/text.html#propdef-text-align> the :first-line pseudo-element does not generate a block level box, it is an inline anonymous box. (and some UA handle is wrong or very wrong, Opera 9 and worse: IE Windows.) <http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo> which also describes which properties can be applied to this pseudo- element. > But however, this does work - so what is the difference? > > <div class='try'> > <span style='text-align: left; width: 200px'>one<br /></span> > twoo<br /> > three<br /> > </div> ?? That doesn't work on any of my browser the way you describe, and shouldn't, because a <span> is an inline element. 'text-align' is ignored. 'width' is also ignored in decent UA. Philippe --- Philippe Wittenbergh <http://emps.l-c-n.com> ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
