Under Subject: Re: [css-d] Capitalize
Philip Taylor (Webmaster, Ret'd) wrote:

Chris Blake wrote:

P.S. I need to be using sub-script and super-script a fair bit on
this site, any warnings or words of wisdom about doing this?

In my experience, sub- and superscripts only too easily destroy
the regularity of the underlying text grid;

I'm so painfully aware of that... I have suggested some remedies at
http://www.cs.tut.fi/~jkorpela/math/#subsup
but I haven't been happy with them.

in order to re-instate
this regularity, I had to use the following :

vertical-align: baseline;
position: relative;
bottom: <some factor>ex;

That looks really cool and simple and seems to fix things nicely. How come I never thought of that?

Are there any hidden problems?

There's the inherent problem that depending on the font characteristics, the line height, the characters in the text, the font size of the superscripts, the factors you've chosen, and the phase of the moon, some subscripts or superscripts might come too close, or even hit, characters on another line. But that's a risk we need to accept and to prepare for (especially by setting line-height and other key properties well).

--
Yucca, http://www.cs.tut.fi/~jkorpela/
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to