| prev | next |
| File: | /Presentation/TokenElements/CommonAttributes/sizeunits4.html | |
| Author: | Robert Miner and Jeff Schaefer, Geometry Technologies | |
| Description: | This test runs through the CSS vertical units, using the 'superscript' attribute of the <msup> element, which is a little more obscure than something like 'fontsize'. | |
| Sample Rendering: |
|
Your browser's rendering:
Source Code:
<math>
<mrow>
<msup>
<mi mathcolor='Blue'>x</mi>
<mn>2</mn>
</msup>
<mo>+</mo>
<msup superscriptshift='24pt'>
<mi mathcolor='Blue'>x</mi>
<mn>2</mn>
</msup>
<mo>+</mo>
<msup superscriptshift='1ex'>
<mi mathcolor='Blue'>x</mi>
<mn>2</mn>
</msup>
<mo>+</mo>
<msup superscriptshift='1em'>
<mrow>
<mi>M</mi>
<mi mathcolor='Blue'>x</mi>
</mrow>
<mn>2</mn>
</msup>
<mo>+</mo>
<msup superscriptshift='10px'>
<mi mathcolor='Blue'>x</mi>
<mn>2</mn>
</msup>
<mo>+</mo>
<msup superscriptshift='0.25in'>
<mi mathcolor='Blue'>x</mi>
<mn>2</mn>
</msup>
<mo>+</mo>
<msup superscriptshift='1cm'>
<mi mathcolor='Blue'>x</mi>
<mn>2</mn>
</msup>
<mo>+</mo>
<msup superscriptshift='10mm'>
<mi mathcolor='Blue'>x</mi>
<mn>2</mn>
</msup>
<mo>+</mo>
<msup superscriptshift='1pc'>
<mi mathcolor='Blue'>x</mi>
<mn>2</mn>
</msup>
<mo>+</mo>
<msup >
<mi fontsize='170%' mathcolor='Blue'>x
</mi>
<mn>2</mn>
</msup>
</mrow>
</math>