Forum How do I...?

How to obtain a two line superscript ?

BorisK
Hi everybody,

I need to write a dissymetric tolerance like this: in the value 45 +10 -15 mmH2O, "+10 -15" must be in supersript, and the -15 value must be beneath the +10 value, as it is shown in the attached file.

How can I manage to do it?

Thanks in advance for your help.
  1. Dissymetric tolerance.PNG3.1 kB
mikeday
Here is one way, using inline-table:
<p>
45<span style="display: inline-table; font-size: 50%; vertical-align: text-bottom">
<span style="display: table-row">+10</span>
<span style="display: table-row">-15</span>
</span>
mm
</p>
BorisK
Great thanks, Mike, for your excellent and fast answer.

The code I writed :
<p>45<sup><span>+10</span><span>-15</span></sup> mmH<sub>2</sub>O</p>


sup {
	display: inline-table;
	font-size: 50%;
	vertical-align: text-bottom;
	padding-left: 2pt;
}

sup span {
	display: table-row;
}
BorisK
I beg your pardon:
The code I wrote
.
As you can see I'm not a native english writer. :--)