property-value

Display/math — CSS reference

The math inner display type selects mathematical formatting for MathML content. Block math starts a block; inline math participates in an inline formatting context. It does not turn plain text into a parsed equation.

Formal Syntax & Structure

css syntaxcss
display: block math;

Working Example

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