mfrac
Summary
The MathML mfrac element is used to display fractions.
Overview Table
Examples
This example demonstrates a simple usage of the mfrac element:
<math>
<mfrac bevelled="true">
<mfrac>
<mi> a </mi>
<mi> b </mi>
</mfrac>
<mfrac>
<mi> c </mi>
<mi> d </mi>
</mfrac>
</mfrac>
</math>
Related specifications
- MathML 3.0
- W3C Recommendation
Attributes
- bevelled
- Specifies the way the fraction is displayed. If
true
, the fraction line is bevelled, which means that numerator and denominator are displayed side by side and separated by a slash (/). Otherwise, if set tofalse
(which is the default value), numerator and denominator are on top of each other.
denomalign - The alignment of the denominator under the fraction. Possible values are:
left
,center
(default), andright
.
linethickness - The thickness of the horizontal fraction line. The default value is
medium
, butthin
,thick
, and other length values can be set.
numalign - The alignment of the numerator over the fraction. Possible values are:
left
,center
(default), andright
.
Attributions
Mozilla Developer Network : Article