Dev Helpers

CSS / Document flow and lists

Use lower Roman numerals for a list

Dev Helpers · October 23, 2026

Roman numerals change the visual marker style while preserving document order. Longer markers need enough inline space.

Worked example

<style>
  .demo {
    list-style-type: lower-roman;
    padding-inline-start: 2rem;
  }
</style>
<ol class="demo">
  <li>Draft</li>
  <li>Review</li>
  <li>Release</li>
</ol>

Implementation notes

Roman numerals vary considerably in width. Reserve space based on the longest expected marker and keep wrapped text aligned with its own content.

Try it yourself

Start the list near eight and compare markers at eight and nine.

Open the CSS example →

Editorial date October 23, 2026 · Published December 6, 2026

Related articles

Fluid width with a maximum

A fluid container needs a small-screen width and a large-screen maximum. Outer gutters should remain visible at both extremes.

Square aspect ratio

A square ratio reserves equal sides even before media loads. Fit rules decide whether rectangular content is cropped or letterboxed.

Minimum inline size

A logical minimum inline size protects a component from collapsing beyond its usable width. An overly large minimum can force overflow.