Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / CSS

pc — the pica length unit

The CSS pc unit represents picas, an absolute length unit: 1pc = 12pt = 16px. It has fixed ratios to other absolute units but does not guarantee a real-world physical size on a screen.

Version: CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required

Syntax

<number>pc

pc represents picas and is a unit of the <length> type. The exact relationship is 1pc = 12pt = 16px = 1in / 6. It is neither a percentage nor a font-relative unit.

Write a number immediately before pc, without whitespace, for example 1.5pc. The unit can be used wherever a property accepts a length; the permitted value range depends on the property.

“Absolute” means fixed conversion ratios, not a guaranteed physical size on a screen. A CSS pixel does not necessarily correspond to a device pixel. Physical units are particularly useful when the output environment is known, such as in print.

The example sets width: 6pc and height: 1pc. The expected readout is 96px × 16px; it illustrates unit conversion, not measurement of the screen’s physical dimensions.

Examples

<!doctype html>
<html lang="en">
<meta charset="utf-8">
<title>pc conversion</title>
<style>
  #sample {
    width: 6pc;
    height: 1pc;
    background: navy;
  }
</style>
<div id="sample"></div>
<pre id="result"></pre>
<script>
  const sample = document.getElementById('sample');
  const style = getComputedStyle(sample);
  document.getElementById('result').textContent =
    `${style.width} × ${style.height}`;
</script>
</html>

Result

96px × 16px

The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.

Sources