W3C home > Mailing lists > Public > www-style@w3.org > July 1997

vertical-align: inherited: no (why?)

From: Hakon Lie <howcome@w3.org>
Date: Wed, 23 Jul 1997 23:39:48 +0200 (MET DST)
Message-Id: <199707232139.XAA03654@online.no>
To: neil@bigpic.com
Cc: www-style@w3.org
Neil St.Laurent writes:

 > Why is vertical-align not inherited?

Good question. Suppose this rule:

  SUP { vertical-align: super }

Then, with this markup:


You get something a la

  |  |

Now, say you would like the two "l" letters to have a differnet color:

  <P>M<SUP>e<SPAN STYLE="color: red">ll</SPAN>e</SUP>

If vertical-align had inherited, the vertial-align value for the SPAN
element would have been 'super'. Then the two "l"s would be
superscripted relative to the parent, which is not the "M", but the
"elle". I.e., you would have had a superscript to the superscript --
probably not what the author wanted. 


H      k   o   n      W   i   u   m       L   i   e
howcome@w3.org   W o r l d   Wide  W e b  Consortium
inria # FRANCE http://www.w3.org/people/howcome
Received on Wednesday, 23 July 1997 17:39:58 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:26:44 UTC