Line Length & Measure
Drag the column width and see characters per line with a verdict from too short to too long.
AI prompt
Editorial page design on a warm white background showing three columns of the same paragraph of serif text side by side, the first very narrow with about 25 characters per line, the second comfortable at about 65, the third very wide at about 110, each labelled beneath in small grey type, thin hairlines, generous margins, flat and minimal. Negative: images, colour accents, decorative fonts, text errors, shadows. Reduced motion: static layout.About this pattern
Definition
Measure is the length of a line of text. Around 45 to 75 characters per line is comfortable: the eye finds the next line easily. Shorter lines make reading choppy; longer lines make the eye lose its place on the return.
When to use it
- Set the width in ch units so it follows the font: max-width of about 65ch for body text.
- Short measures suit captions and narrow sidebars; long measures suit nothing.
- If the container must be wide, put the text in a narrower column rather than stretching it.
What the controls do
- A Width slider in characters and three quick buttons (Narrow, Comfortable, Wide).
Motion & timing
- The column resizes as you drag; no animation.
- Reduced motion: nothing to change.
Tips & variations
- On mobile the measure is usually narrow; make sure it does not fall below about 35 characters.
- Increase line height a little as the line gets longer.
Code of this live preview
<div class="bx"><div class="pre" id="pre" role="group" aria-label="Presets"><button data-p="0" aria-pressed="true">Narrow</button><button data-p="1" aria-pressed="false">Comfortable</button><button data-p="2" aria-pressed="false">Wide</button></div><label class="rw">Width <b id="wv">65 characters</b><input id="wd" type="range" min="20" max="100" value="65"></label><div class="vd" id="vd"></div><div class="bk"><p id="tx" style="margin:0">Good typography is invisible. A comfortable line length lets the eye move to the start of the next line without effort, so readers stay with the text instead of hunting for their place on the page. Very short lines break thoughts into pieces; very long lines tire the eye.</p></div></div>:root{--bg:#F1F1EF;--surface:#fff;--surface-2:#F7F7F5;--line:#E0E0DC;--text:#171717;--muted:#6f6f6f;--accent:#171717;--accent-ink:#fff;--danger:#d92d20}
*{box-sizing:border-box;margin:0}
.pre{display:flex;gap:5px;flex-wrap:wrap}.pre button{height:28px;padding:0 11px;border-radius:99px;border:1px solid var(--line);background:var(--surface);font-size:11px;cursor:pointer}
.pre button[aria-pressed=true]{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.bx{width:min(330px,100%);display:grid;gap:9px}.rw{display:grid;gap:3px;font-size:11.5px;color:var(--muted)}.rw b{color:var(--text);font-weight:600}input[type=range]{width:100%;accent-color:#171717}
.out{font-size:12px;color:var(--muted);line-height:1.4}.out b{color:var(--text)}
button:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.vd{font-size:12px;font-weight:600;padding:3px 10px;border-radius:99px;justify-self:start}.vd.ok{background:#dcf5e3;color:#14502a}.vd.no{background:#fbe0dd;color:#7a1d14}.vd.mid{background:#fff0c4;color:#6a4800}
.bk{border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:10px 12px;height:130px;overflow:hidden}.bk p{font:13px/1.55 Georgia,serif;color:#333;max-width:var(--ch)}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}const P=[30,65,95],wd=document.getElementById('wd'),tx=document.getElementById('tx'),vd=document.getElementById('vd'),bs=[...document.querySelectorAll('#pre button')];
function up(){const n=+wd.value;tx.style.setProperty('max-width',n+'ch');document.getElementById('wv').textContent=n+' characters';let c='ok',t='Comfortable: 45 to 75';if(n<40){c='no';t='Too short: choppy to read';}else if(n<45){c='mid';t='A little short';}else if(n>85){c='no';t='Too long: the eye loses its place';}else if(n>75){c='mid';t='A little long';}vd.className='vd '+c;vd.textContent=t;bs.forEach(b=>b.setAttribute('aria-pressed',String(P[+b.dataset.p]===n)));}
bs.forEach(b=>b.addEventListener('click',()=>{wd.value=P[+b.dataset.p];up();}));wd.addEventListener('input',up);up();One complete HTML file. Save it and open it in a browser.
<!doctype html>
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Line Length & Measure — demo</title>
<style>
:root{--bg:#F1F1EF;--surface:#fff;--surface-2:#F7F7F5;--line:#E0E0DC;--text:#171717;--muted:#6f6f6f;--accent:#171717;--accent-ink:#fff;--danger:#d92d20}
*{box-sizing:border-box;margin:0}
html,body{height:100%}body{background:var(--bg);color:var(--text);font:15px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',Inter,Roboto,sans-serif;-webkit-font-smoothing:antialiased}.stage{min-height:100%;display:grid;place-items:center;padding:24px}button,input,select,textarea{font-family:inherit}@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.pre{display:flex;gap:5px;flex-wrap:wrap}.pre button{height:28px;padding:0 11px;border-radius:99px;border:1px solid var(--line);background:var(--surface);font-size:11px;cursor:pointer}
.pre button[aria-pressed=true]{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.bx{width:min(330px,100%);display:grid;gap:9px}.rw{display:grid;gap:3px;font-size:11.5px;color:var(--muted)}.rw b{color:var(--text);font-weight:600}input[type=range]{width:100%;accent-color:#171717}
.out{font-size:12px;color:var(--muted);line-height:1.4}.out b{color:var(--text)}
button:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.vd{font-size:12px;font-weight:600;padding:3px 10px;border-radius:99px;justify-self:start}.vd.ok{background:#dcf5e3;color:#14502a}.vd.no{background:#fbe0dd;color:#7a1d14}.vd.mid{background:#fff0c4;color:#6a4800}
.bk{border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:10px 12px;height:130px;overflow:hidden}.bk p{font:13px/1.55 Georgia,serif;color:#333;max-width:var(--ch)}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
</style></head>
<body><div class="stage">
<div class="bx"><div class="pre" id="pre" role="group" aria-label="Presets"><button data-p="0" aria-pressed="true">Narrow</button><button data-p="1" aria-pressed="false">Comfortable</button><button data-p="2" aria-pressed="false">Wide</button></div><label class="rw">Width <b id="wv">65 characters</b><input id="wd" type="range" min="20" max="100" value="65"></label><div class="vd" id="vd"></div><div class="bk"><p id="tx" style="margin:0">Good typography is invisible. A comfortable line length lets the eye move to the start of the next line without effort, so readers stay with the text instead of hunting for their place on the page. Very short lines break thoughts into pieces; very long lines tire the eye.</p></div></div>
</div>
<script>
const P=[30,65,95],wd=document.getElementById('wd'),tx=document.getElementById('tx'),vd=document.getElementById('vd'),bs=[...document.querySelectorAll('#pre button')];
function up(){const n=+wd.value;tx.style.setProperty('max-width',n+'ch');document.getElementById('wv').textContent=n+' characters';let c='ok',t='Comfortable: 45 to 75';if(n<40){c='no';t='Too short: choppy to read';}else if(n<45){c='mid';t='A little short';}else if(n>85){c='no';t='Too long: the eye loses its place';}else if(n>75){c='mid';t='A little long';}vd.className='vd '+c;vd.textContent=t;bs.forEach(b=>b.setAttribute('aria-pressed',String(P[+b.dataset.p]===n)));}
bs.forEach(b=>b.addEventListener('click',()=>{wd.value=P[+b.dataset.p];up();}));wd.addEventListener('input',up);up();
</script>
</body></html>