HTML5 MathML
HTML5 MathML voffset Attribute
The voffset attribute on <mpadded> shifts the content vertically by a specified amount, without altering its reported dimensions.
Definition and usage
The voffset attribute moves the visual position of content up (positive value) or down (negative value). It is a length such as 3px or 0.2em. It changes only the drawn position, which is useful for fine-tuning alignment.
Which elements use it
- <mpadded> - shifts its child content vertically.
Example
<math>
<mrow>
<mi>a</mi>
<mo>+</mo>
<mpadded voffset="4px">
<mi>b</mi>
</mpadded>
</mrow>
</math>The identifier b is drawn 4px higher than its natural position while a and the operator stay put.
ℹ️
The voffset attribute on <mpadded> is part of MathML Core and is supported by modern browsers.
