CKTIS / CSS
pt — CSS point
The pt unit represents a CSS point: 1/72 of a CSS inch. Its conversion to px is fixed and independent of font size.
Version: CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
Syntax
<number>ptpt is an absolute length unit. Write the number immediately before the unit, without whitespace, such as 12pt. It can be used in properties accepting lengths, not only in font-size.
The relationships are 72pt = 1in = 96px, so 12pt = 16px. These are CSS pixels, not necessarily individual device pixels.
“Absolute” means fixed ratios between units, not a guaranteed physical size on a screen. Unlike em, pt does not depend on font size. It is useful in print layouts; on screens, do not assume that it matches a physical ruler.
Examples
<!doctype html>
<html lang="en">
<meta charset="utf-8">
<title>CSS pt</title>
<style>
.box {
width: 72pt;
height: 12pt;
background: black;
}
</style>
<div class="box"></div>
</html>Result
A black rectangle measuring 96 CSS px wide and 16 CSS px high.
The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.