concept

Mathml display style — CSS reference

Block mathematical display normally uses normal math style, while inline formulas normally use compact style. The display attribute supplies presentational hints; explicit CSS can override them.

Formal Syntax & Structure

css syntaxcss
<math display="block">…</math>

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>MathML display style</title><style>body{margin:8px;font:32px/1.5 monospace;color:#172033;background:white}rt{font:16px/1.2 monospace}math{font-size:40px}
</style><body><math id="m" display="block"><mi>x</mi></math><math id="other"><mi>y</mi></math></body></html>
CSS Reference