The CSS millimetre is an SI-derived absolute length unit in the W3C CSS specification, defined as 1/25.4 of a CSS inch, or 96/25.4 (about 3.7795) CSS pixels. Written mm in stylesheets and designated mm CSS in conversion tables, it brings metric paper geometry into web layout and HTML-to-PDF publishing.
In physical metrology, one millimetre is one thousandth of a metre and the international inch is fixed at exactly 25.4 millimetres. CSS preserves that exact 25.4 ratio between its inch and millimetre, locking 1 mm CSS permanently to 96/25.4 CSS pixels and 72/25.4 (about 2.8346) points so conversions among absolute CSS units stay identical across every browser.
That fixed anchor followed a messy early debate. Initial CSS 2 drafts expected browsers to read each monitor's true dot pitch so a 50 mm element measured five centimetres against a plastic ruler on screen. Because displays frequently misreported their dimensions and layouts mixing px and mm fractured whenever ratios drifted, W3C CSS 2.1 tied screens to the reference pixel grid while preserving true physical scale for print media.
CSS millimetres therefore shine wherever web code drives physical paper. Print stylesheets, paged-media engines such as WeasyPrint and Prince, shipping labels and invoice generators specify ISO 216 sizes directly: an A4 page is 210 by 297 mm, an A5 booklet 148 by 210 mm, a European business card 85 by 55 mm, and commercial bleed margins 3 mm.
For designers bridging metric grids and point-sized type, the ratio of roughly 2.8346 points per millimetre — or 37.8 CSS pixels per centimetre — links stationery dimensions directly to editorial scales: a 10 mm margin renders at about 37.8 px on screen and an exact 10 millimetres off a laser printer.
While screen interfaces rely on px and rem for pixel-crisp rendering and accessibility, mm CSS remains the clearest choice for metric print output.
One CSS millimetre equals about 3.7795 CSS pixels, about 2.8346 points, about 0.2362 picas, about 56.6929 twips, or 1/25.4 of a CSS inch (about 0.03937 CSS inches).
| Unit | Symbol | 1 CSS millimeter equals | 1 of these equals | Converter |
|---|---|---|---|---|
| CSS pixel | px | 3.77952755906 px | 0.264583333333 mm CSS | CSS millimeters to CSS pixels |
| Point | pt | 2.83464566929 pt | 0.352777777778 mm CSS | CSS millimeters to Points |
| Pica | pc | 0.236220472441 pc | 4.23333333333 mm CSS | CSS millimeters to Picas |
| CSS rem | rem | 0.236220472441 rem | 4.23333333333 mm CSS | CSS millimeters to CSS rems |
| CSS em | em | 0.236220472441 em | 4.23333333333 mm CSS | CSS millimeters to CSS ems |
| Twip | twip | 56.6929133858 twip | 0.0176388888889 mm CSS | CSS millimeters to Twips |
| CSS inch | in CSS | 0.0393700787402 in CSS | 25.4 mm CSS | CSS millimeters to CSS inches |