M — A–Z

Every CSS entry starting with M, grouped by kind. Pseudo-classes, pseudo-elements and types are filed by their first letter, ignoring the leading :, :: or <.

NameDescription
Color
MarkSystem colour: the background of marked text.
MarkTextSystem colour: marked text.
magentaNamed colour #ff00ff, the same as fuchsia.
maroonNamed colour #800000.
mediumaquamarineNamed colour #66cdaa.
mediumblueNamed colour #0000cd.
mediumorchidNamed colour #ba55d3.
mediumpurpleNamed colour #9370db.
mediumseagreenNamed colour #3cb371.
mediumslateblueNamed colour #7b68ee.
mediumspringgreenNamed colour #00fa9a.
mediumturquoiseNamed colour #48d1cc.
mediumvioletredNamed colour #c71585.
midnightblueNamed colour #191970.
mintcreamNamed colour #f5fffa.
mistyroseNamed colour #ffe4e1.
moccasinNamed colour #ffe4b5.
Function
matrix()A 2D transform given as six matrix values.
matrix3d()A 3D transform given as a 4x4 matrix of 16 values.
max()The largest of its comma-separated arguments.
min()The smallest of its comma-separated arguments.
minmax()A grid track size between a minimum and a maximum.
mod()The modulus of a division, with the sign of the divisor.
Keyword
mathGeneric font family: a font for mathematical notation.
monospaceGeneric font family: every character the same width.
Media feature
monochromeBits per pixel on a monochrome device, or 0.
Property
marginShorthand for the four physical margins outside the border.
margin-blockShorthand for the block-start and block-end margins.
margin-block-endThe margin after a box in the block axis; the bottom margin in English.
margin-block-startThe margin before a box in the block axis; the top margin in English.
margin-bottomThe margin below the border.
margin-inlineShorthand for the inline-start and inline-end margins.
margin-inline-endThe margin at the end of the line; the right margin in English.
margin-inline-startThe margin at the start of the line; the left margin in English.
margin-leftThe margin to the left of the border.
margin-rightThe margin to the right of the border.
margin-topThe margin above the border.
margin-trimDiscards child margins that meet the container edge.
markerShorthand for the start, middle and end markers of an SVG shape.
marker-endThe marker drawn at the last vertex of an SVG shape.
marker-midThe marker drawn at every middle vertex of an SVG shape.
marker-startThe marker drawn at the first vertex of an SVG shape.
maskShorthand for the mask layers that hide parts of an element.
mask-borderShorthand for a mask sliced over the edges like border-image.
mask-border-outsetHow far the mask border extends beyond the border box.
mask-border-repeatHow mask border slices are stretched or repeated.
mask-border-sliceWhere to cut the mask border image into corners and edges.
mask-border-sourceThe image used for a mask border.
mask-border-widthThe width of the mask border on each side.
mask-clipThe area a mask affects.
mask-compositeHow each mask layer combines with the layers below it.
mask-imageThe images or SVG masks used as mask layers.
mask-modeWhether a mask layer is read by alpha or luminance.
mask-originThe box mask images are positioned and sized against.
mask-positionWhere each mask image sits in its origin box.
mask-repeatHow mask images tile.
mask-sizeThe size of each mask image.
mask-typeWhether an SVG mask uses the luminance or alpha of its content.
math-depthNesting depth in a MathML formula, used to shrink scripts.
math-shiftHow far superscripts are raised in MathML.
math-styleDisplay or compact inline layout for MathML formulas.
max-block-sizeAn upper limit on the size of a box along the block axis.
max-heightAn upper limit on the height of a box.
max-inline-sizeAn upper limit on the size of a box along the inline axis.
max-widthAn upper limit on the width of a box.
min-block-sizeA lower limit on the size of a box along the block axis.
min-heightA lower limit on the height of a box.
min-inline-sizeA lower limit on the size of a box along the inline axis.
min-widthA lower limit on the width of a box.
mix-blend-modeHow an element blends with the content behind it.
Pseudo-class
:modalMatches an element that blocks the rest of the page, such as a modal dialog.
:mutedMatches a media element that is muted.
Pseudo-element
::markerThe bullet or number box of a list item.
Unit
mmOne millimetre.
msMilliseconds; 1000ms is 1s.