This page is Ready to Use

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

mpadded

Summary

The MathML mpadded element is used to add extra padding and to set the general adjustment of position and size of enclosed contents.

Overview Table

DOM Interface
mathml

Examples

This example demonstrates a simple usage of the mpadded element:



<math>

  <mpadded height="+150px" width="100px" lspace="2height">
    <mi> x </mi>
    <mo> + </mo>
    <mi> y </mi>
  </mpadded>

</math>

Related specifications

MathML 3.0
W3C Recommendation

Attributes

depth
Sets or increments the depth. Possible values: Any length or an increment/decrement (a length prefixed with “+” or "-") .
height
Sets or increments the height. Possible values: Any length or an increment/decrement (a length prefixed with “+” or "-") .
lspace
Sets or increments the horizontal position. Possible values: Any length or an increment/decrement (a length prefixed with “+” or "-") .
voffset
Sets or increments the vertical position. Possible values: Any length or an increment/decrement (a length prefixed with “+” or "-") .
width
Sets or increments the width. Possible values: Any length or an increment/decrement (a length prefixed with “+” or "-") .

Pseudo-units

It is possible to use the keywords "depth","height", and "width" as a pseudo-unit for the attributes depth, height, lspace, voffset, and width. They represent each length of the same-named dimension.

Attributions

  • Mozilla Developer Network cc-by-sa-small-wpd.svg: Article