<mspace>

The MathML <mspace> element is used to display a blank space, whose size is set by its attributes.

Attributes

class, id, style
Provided for use with stylesheets.
depth
The desired depth (below the baseline) of the space (see length for values and units).
height
The desired height (above the baseline) of the space (see length for values and units).
linebreak
Indicates a line-break at the space. Possible values: auto (default value), newline, nobreak, goodbreak, badbreak.
Starting with MathML 3, it is preferred to use <mo> to control linebreaking.
mathbackground
The background color. You can use #rgb, #rrggbb and HTML color names.
width
The desired width of the space (see length for values and units).

Note that some common attributes like mathcolor, mathvariant or dir have no effect on <mspace>.

Examples

<math>
  <mspace depth="40px" height="20px" />
  <mspace width="100px" />
</math>

Specifications

Specification Status Comment
MathML 3.0
The definition of 'mspace' in that specification.
Recommendation Current specification
MathML 2.0
The definition of 'mspace' in that specification.
Recommendation Initial specification

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support Not supported 1.0 (1.7 or earlier) Not supported Not supported Not supported
linebreak Not supported Not supported Not supported Not supported Not supported
depth, height, width Not supported 1.0 (1.7 or earlier) Not supported Not supported Not supported
Feature Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support Not supported Not supported 1.0 (1.9.2) Not supported Not supported Not supported
linebreak Not supported Not supported Not supported Not supported Not supported Not supported
depth, height, width Not supported Not supported 1.0 (1.9.2) Not supported Not supported Not supported

Gecko-specific notes

  • Indentation attributes are not implemented yet (for Gecko see bug 534962).
  • Support for negative values for the width attribute has been implemented in Gecko 23.0 (Firefox 23.0 / Thunderbird 23.0 / SeaMonkey 2.20).

See also

Document Tags and Contributors

 Contributors to this page: fscholz, Sheppy, jswisher
 Last updated by: fscholz,