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
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
mspace | Chrome No support No | Edge No support No | Firefox Full support 1 | IE No support No | Opera No support No | Safari No support No | WebView Android No support No | Chrome Android No support No | Firefox Android Full support 4 | Opera Android No support No | Safari iOS No support No | Samsung Internet Android No support No |
depth | Chrome No support No | Edge No support No | Firefox Full support 1 | IE No support No | Opera No support No | Safari No support No | WebView Android No support No | Chrome Android No support No | Firefox Android Full support 4 | Opera Android No support No | Safari iOS No support No | Samsung Internet Android No support No |
height | Chrome No support No | Edge No support No | Firefox Full support 1 | IE No support No | Opera No support No | Safari No support No | WebView Android No support No | Chrome Android No support No | Firefox Android Full support 4 | Opera Android No support No | Safari iOS No support No | Samsung Internet Android No support No |
linebreak | Chrome No support No | Edge No support No | Firefox No support No | IE No support No | Opera No support No | Safari No support No | WebView Android No support No | Chrome Android No support No | Firefox Android No support No | Opera Android No support No | Safari iOS No support No | Samsung Internet Android No support No |
width | Chrome No support No | Edge No support No | Firefox Full support 1 | IE No support No | Opera No support No | Safari No support No | WebView Android No support No | Chrome Android No support No | Firefox Android Full support 4 | Opera Android No support No | Safari iOS No support No | Samsung Internet Android No support No |
Legend
- Full support
- Full support
- No support
- No support
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).