W3C home > Mailing lists > Public > www-style@w3.org > September 1998

Re: Inheritance?

From: L. David Baron <dbaron@fas.harvard.edu>
Date: Mon, 28 Sep 1998 15:44:34 -0400 (EDT)
Message-Id: <199809281944.PAA00338@login4.fas.harvard.edu>
To: leonardr@Adobe.COM, www-style@w3.org
>From: Leonard Rosenthol <leonardr@Adobe.COM>
>Given a style declaration of:
>
>	<STYLE type="text/css">
>	<!--
>		.dynamic-style {text-indent : 24px}
>	-->
>	</STYLE>
>
>
>Why does this NOT work?
>	<P class="dynamic-style"><SPAN>standard paragraph with a first line 
>indent</SPAN></P>
>
>
>and this does?
>	<P><SPAN class="dynamic-style">standard paragraph with a first line 
>indent</SPAN></P>

I would think that the first example should work, but the second example
should not work.  This is because text-indent should only apply to block-level
elements (such as P) but not to inline elements (such as SPAN).  Could you
have gotten the examples mixed up?

David Baron

--------------------------------------------------------------------
L. David Baron         | Freshman, Harvard
dbaron@fas.harvard.edu | < http://www.fas.harvard.edu/~dbaron/ >
Webmaster, International Weather Satellite Imagery Center, etc.
--------------------------------------------------------------------
Received on Monday, 28 September 1998 15:44:40 GMT

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