W3C home > Mailing lists > Public > www-style@w3.org > April 2011

Re: Inline vertical align - capital-middle

From: Stanimir Stamenkov <s7an10@netscape.net>
Date: Sat, 09 Apr 2011 22:16:02 +0300
Message-ID: <4DA0B072.1080205@netscape.net>
To: www-style@w3.org
Sat, 09 Apr 2011 19:47:26 +0300, /Stanimir Stamenkov/:

> Has the working group ever considered a value for the
> 'vertical-align' property allowing one to align inline boxes
> centered to the middle of the capital letters in a text line vs. the
> current 'middle' of the small letters?
> I find the former more useful than the later, as at certain ratio
> between the font size and the height of the box to align, the box
> may appear hanging below the text - see the attached example. I
> would really like to have the box appear middle "balanced" to the
> text at different font sizes.
> The closest I've been able to achieve is 'line-middle' (in the
> attached example) where both the box and the text get aligned to the
> middle of the parent line. I don't like the side effect of the text
> being shifted off its main baseline, however.
> Don't you think there's need of additional 'vertical-align' values
> like 'capital-middle' and/or 'line-middle'?
> [Attachment: vmiddle.html]

I apologize to anyone having trouble reading the original message 
because of the attachment displaying inline and its styles 
interfering with the main message body.  This one should be o.k.

Received on Saturday, 9 April 2011 19:16:24 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 11 February 2015 12:34:50 UTC