HTML: can I place subscript text right under the superscript? -


I have a word that contains superscript and subscript, now I call it the word & lt; Sub & gt; 1 & lt; / Sub & gt; & Lt; Sup> 2 & lt; / Sup> and am getting it:

. 

How can I put the subscript under the superscript?

Here's a clean solution to create two CSS classes:

 . Nobr {white-space: nowrap; } .supsub {display: inline-block; Margin: -9em 0; Vertical-alignment: -0.55em; Line-height: 1.35em; Font-size: 70%; Align text: left; }  

You already have the "nobr" class & lt; Nobr & gt; Replacement. Now to express the molecular formula of sulfate, use the "supsub" class as follows:

   

That is, open your superscript / subscript inside the "supsub" class, and enter a & lt; Br / & gt; among themselves. If you prefer your super script / subscriptions a little bigger or smaller, adjust the font size and then adjust the tinker with vertical-alignment and line-height margin setting -9em superscript / subscript along with those lines Keep adding to the height of; There will be no big value.


Comments

Popular posts from this blog

MySql variables and php -

url rewriting - How to implement the returnurl like SO in PHP? -

Which Python client library should I use for CouchdB? -