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 <.
| Name | Description |
|---|---|
| Color | |
Mark | System colour: the background of marked text. |
MarkText | System colour: marked text. |
magenta | Named colour #ff00ff, the same as fuchsia. |
maroon | Named colour #800000. |
mediumaquamarine | Named colour #66cdaa. |
mediumblue | Named colour #0000cd. |
mediumorchid | Named colour #ba55d3. |
mediumpurple | Named colour #9370db. |
mediumseagreen | Named colour #3cb371. |
mediumslateblue | Named colour #7b68ee. |
mediumspringgreen | Named colour #00fa9a. |
mediumturquoise | Named colour #48d1cc. |
mediumvioletred | Named colour #c71585. |
midnightblue | Named colour #191970. |
mintcream | Named colour #f5fffa. |
mistyrose | Named colour #ffe4e1. |
moccasin | Named 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 | |
math | Generic font family: a font for mathematical notation. |
monospace | Generic font family: every character the same width. |
| Media feature | |
monochrome | Bits per pixel on a monochrome device, or 0. |
| Property | |
margin | Shorthand for the four physical margins outside the border. |
margin-block | Shorthand for the block-start and block-end margins. |
margin-block-end | The margin after a box in the block axis; the bottom margin in English. |
margin-block-start | The margin before a box in the block axis; the top margin in English. |
margin-bottom | The margin below the border. |
margin-inline | Shorthand for the inline-start and inline-end margins. |
margin-inline-end | The margin at the end of the line; the right margin in English. |
margin-inline-start | The margin at the start of the line; the left margin in English. |
margin-left | The margin to the left of the border. |
margin-right | The margin to the right of the border. |
margin-top | The margin above the border. |
margin-trim | Discards child margins that meet the container edge. |
marker | Shorthand for the start, middle and end markers of an SVG shape. |
marker-end | The marker drawn at the last vertex of an SVG shape. |
marker-mid | The marker drawn at every middle vertex of an SVG shape. |
marker-start | The marker drawn at the first vertex of an SVG shape. |
mask | Shorthand for the mask layers that hide parts of an element. |
mask-border | Shorthand for a mask sliced over the edges like border-image. |
mask-border-outset | How far the mask border extends beyond the border box. |
mask-border-repeat | How mask border slices are stretched or repeated. |
mask-border-slice | Where to cut the mask border image into corners and edges. |
mask-border-source | The image used for a mask border. |
mask-border-width | The width of the mask border on each side. |
mask-clip | The area a mask affects. |
mask-composite | How each mask layer combines with the layers below it. |
mask-image | The images or SVG masks used as mask layers. |
mask-mode | Whether a mask layer is read by alpha or luminance. |
mask-origin | The box mask images are positioned and sized against. |
mask-position | Where each mask image sits in its origin box. |
mask-repeat | How mask images tile. |
mask-size | The size of each mask image. |
mask-type | Whether an SVG mask uses the luminance or alpha of its content. |
math-depth | Nesting depth in a MathML formula, used to shrink scripts. |
math-shift | How far superscripts are raised in MathML. |
math-style | Display or compact inline layout for MathML formulas. |
max-block-size | An upper limit on the size of a box along the block axis. |
max-height | An upper limit on the height of a box. |
max-inline-size | An upper limit on the size of a box along the inline axis. |
max-width | An upper limit on the width of a box. |
min-block-size | A lower limit on the size of a box along the block axis. |
min-height | A lower limit on the height of a box. |
min-inline-size | A lower limit on the size of a box along the inline axis. |
min-width | A lower limit on the width of a box. |
mix-blend-mode | How an element blends with the content behind it. |
| Pseudo-class | |
:modal | Matches an element that blocks the rest of the page, such as a modal dialog. |
:muted | Matches a media element that is muted. |
| Pseudo-element | |
::marker | The bullet or number box of a list item. |
| Unit | |
mm | One millimetre. |
ms | Milliseconds; 1000ms is 1s. |