Lines in neighboring columns that almost match but don’t look off, and the eye catches it before you can say why. A baseline grid prevents that. Horizontal guide lines are spaced at one fixed increment, and every line of text sits on one of them, so text in separate columns, frames and even pages shares the same rows. A column grid can’t do that on its own.

Print designers set the increment in points, usually equal to body text leading. Web designers use pixels or rem.

CSS adds a wrinkle that most explanations skip. It splits extra line-height evenly above and below each line, so text sits between grid lines rather than on them. Chrome for Developers (January 2025) documents text-box-trim as the native fix, with Chrome 133 and Safari 18.2 listed as supporting browsers. Firefox 154 added it in August 2026.

What Is a Baseline Grid?

Text sitting on evenly spaced baselines across a page

Every line of type has a baseline, the invisible line most letters rest on. Descenders, like the tail of a g or y, hang below it. Ascenders, like the stem of a b or d, rise above the x-height.

Repeat that line down the page at even intervals and you have the grid. Google Fonts Knowledge gives the unit a concrete value: a 16 pixel baseline grid puts a baseline every 16 vertical pixels.

It handles vertical position only. Column width and gutters belong to other grids.

Newspapers lean on it hardest. Keith Tam’s InDesign teaching notes say baseline grids are almost always used there, and often used in magazines and textbooks. On the web it shows up as line-height and spacing set in multiples of one base unit. UI design systems do much the same, sharing a single spacing unit between type and components.

In editorial design the payoff is easy to see on a multi-column spread. A caption in the third column sits on the same line as body text in the first.

How Does a Baseline Grid Work?

YouTube player

Each line of text snaps to the next grid line at or below its natural position. Set the increment to body text leading and every line of body copy lands on a grid line. Anything with different leading gets pushed down to the next line that fits.

Increment and leading

The distance between grid lines is the increment. Adobe’s InDesign Help tells designers to enter a value equal to body text leading in most cases, so the grid and the main text step down the page together.

Lines that don’t match get corrected rather than ignored. FontShop’s 2013 walkthrough describes a line with leading slightly under the increment still being forced to the next grid position, and a line with larger leading being kicked down one more.

The math is simple. Effective line spacing equals the leading rounded up to the next multiple of the increment.

Leading on a 12 pt grid Effective spacing What you see
12 pt 12 pt Every line sits on a grid line
11 pt 12 pt Lines open up to the grid
13 pt 24 pt Text looks double spaced
24 pt 24 pt Clean, every second line

The 13 pt row catches people out, since a one point difference doubles the spacing.

Start offset and the first baseline

The start offset decides where the first grid line falls. InDesign’s Grids preferences can anchor it to the top of the page or the top margin, and a text frame with its own custom grid adds top of frame and top of frame inset.

Pick the top of the page and grid lines count from the paper edge. Pick the top margin and the first grid line meets the first line of body text, which saves you a manual offset when body copy starts right there.

A frame’s First Baseline Offset setting (Ascent, Cap Height, Leading, x-height or Fixed) also moves the first line. Check it when the opening line of a column refuses to land on the grid.

Adobe’s documentation adds one constraint. The document baseline grid appears on every spread and cannot be assigned to a parent page. A frame that needs a different rhythm gets its own grid in Text Frame Options.

How Do You Choose a Baseline Grid Increment?

YouTube player

Start with body text leading. Where headings, captions and images need finer steps, use a fraction of it, half or a third or a quarter. Print layouts count in points and web layouts in pixels.

Adobe’s InDesign Help recommends matching the leading for most documents. The steps are coarse, so the grid is easy to check, but subheads then need leading in whole multiples. FontShop goes the other way and advises dividing it, so body text lands on every second or third increment. Captions, pull quotes and image heights get finer steps out of that, and you pay for it with more lines to manage and more ways to drift.

The two sources don’t really conflict. Adobe is describing the simplest case, while FontShop has captions, sidebars and multi-line list items in mind, where a finer grid earns its keep. I’d start simple and only go finer once captions begin fighting the grid.

For a 10 pt body on 12 pt leading, a 12 pt increment gives the simple grid and 6 pt gives two steps per body line.

Screen layouts start from a pixel unit instead. Print increments are set in points and web increments in pixels, so converting points to pixels is the first job when a layout moves from InDesign to CSS.

A few published systems (Material Design’s earlier guidelines, IBM Design Language, Aten Design Group) show how the numbers play out.

  • Material Design aligns type to a 4dp baseline grid and components to an 8dp grid, and its line-height has to be divisible by 4 to hold the grid, whatever the type size.
  • IBM Design Language uses an 8px mini unit for product and web, with spacing in 1x, 2x, 3x, 4x, 6x, 8x, 10x and 12x multiples.
  • Aten Design Group runs a 6px baseline grid under a 24px line height, so each body line spans 4 steps.

Finer isn’t automatically better. A grid fine enough to place anything anywhere stops constraining the layout. Material Design takes the middle path, with 8dp for components and 4dp for type and smaller elements such as icons.

Baseline Grid vs Column Grid, Modular Grid and Vertical Rhythm

YouTube player

Column grids deal with horizontal position and baseline grids with vertical position, while a modular grid covers both. Vertical rhythm isn’t a grid type at all. It’s the effect a baseline grid helps produce.

Concept Controls Direction
Baseline grid Where text lines and spacing sit Vertical
Column grid Content width, columns and gutters Horizontal
Modular grid Fields that content fills Both
Vertical rhythm Consistent vertical spacing (a result) Vertical

Most layouts run two of these together. IBM’s 2x Grid documentation describes a hybrid, building the layout from the 8px mini unit and then using a baseline grid to guide the content.

Canonical’s A4 layout system goes the other way and puts the baseline grid underneath everything, taking its step from body text leading and aligning text and images to it, according to its 2025 write-up.

Modular grids are the older, bigger idea among print grid systems. Josef Müller-Brockmann’s Grid Systems in Graphic Design (Niggli, 1981) gives rules for grids of 8 to 32 fields, and a baseline grid adds finer rows inside fields like those.

That book sits in the Swiss design tradition, where the grid carried the whole layout. Robert Bringhurst, in The Elements of Typographic Style (1992), treats vertical motion as a typographic matter in its own right, and the baseline grid is the tool that formalizes it.

A page can sit on a baseline grid and still feel uneven. Margins, paragraph spacing and heading sizes all feed into rhythm too, so the grid is necessary but not enough.

How to Set Up a Baseline Grid in InDesign and Figma

YouTube player

In InDesign the grid is a document-level preference, and alignment is an option on the paragraph style that carries body text. Figma works differently, with a layout grid on the frame and vertical trim on each text layer.

InDesign

The grid has to exist before alignment does anything, so do them in that order.

  1. Open Preferences > Grids (the Edit menu on Windows, the InDesign menu on Mac).
  2. In the Baseline Grid section, enter the increment and the start position, then click OK.
  3. Choose View > Grids & Guides > Show Baseline Grid. If nothing appears, zoom in, because the grid hides below the View Threshold.
  4. Open the body paragraph style, go to Indents and Spacing, and set Align to Grid to All Lines.
  5. For multi-line subheads and sidebars, turn on Align to Baseline Grid for the paragraph, then pick Only Align First Line to Grid from the Paragraph panel menu.
  6. Leave Snap to Guides on, so images and frames snap to grid lines too.

Step 5 comes from a CreativePro tip, and step 6 from Adobe’s grid documentation, which says one command controls both guide snapping and baseline grid snapping.

Showing and hiding the grid is a menu trip every time, so InDesign’s keyboard shortcuts are worth learning, or you can assign your own as FontShop suggests.

Figma

A Figma layout grid is only a visual guide on a frame. The real work is setting text up so its baseline can sit on a line.

Figma’s REST API spec lists columns, rows and a square grid as layout grid patterns. A square grid sized to the increment draws the horizontal lines, and so does a Top row guide with that fixed height and Count set to Auto.

On the text side, every text style needs a line height that is a whole multiple of the increment. Each text layer also needs vertical trim set to cap height to baseline, so the layer edge is the glyph baseline instead of a padded box. Inside auto layout, keep padding and gaps in multiples of the increment, as one UX Collective guide does on a 4 px grid.

The author of that guide notes that baseline alignment is more often than not ignored in public UI kits and libraries, and credits Figma’s vertical trim for making the method practical.

Other layout tools

Grid mechanics differ more between tools than the menus suggest, mainly in what happens to a line whose leading doesn’t match the increment.

Tool Where the grid is set What happens to text
Adobe InDesign Preferences > Grids, per document Lines snap to the next grid line
Affinity Publisher Baseline Grid Manager, or per text frame Grid spacing overrides frame leading
QuarkXPress Start and Increment values Lock to Baseline Grid, a paragraph attribute

Affinity’s Publisher help says the grid spacing overrides the leading of frame text, and that spacing equal to body leading makes the text align. Alignment is a checkbox on the Baseline Grid tab of the Paragraph panel (Publisher 2 help pages).

For QuarkXPress, Quark’s support pages list Start and Increment values, and a 2003 Peachpit book describes Lock to Baseline Grid as a paragraph attribute. That book is old, so check the current menu names.

How to Apply a Baseline Grid in CSS

YouTube player

CSS has no baseline grid setting. You build one by picking a base unit and making line-height, margins, padding and heights whole multiples of it. On the web the baseline step is the computed line-height of the body text, as Zell Liew puts it in his 2016 post on web typography.

Line-height and spacing multiples

Define the unit once, in the body rule’s line-height, and derive everything else from it. Opera’s developer article on setting web type to a baseline grid does exactly that, and adds a practical tip. Tile a background image so the grid is visible, and if the page drifts out of sync part way down, check margins on elements higher up.

Line-height goes in a whole multiple of the unit, such as 24px on a 4px unit. Vertical margins, padding, image heights and component heights follow the same multiples. Headings need a fixed or rem line-height, because a unitless value multiplies the font size and can leave the grid.

These days a repeating-linear-gradient background draws the same overlay without an image, which Zell Liew uses in that post.

A 4 px or 8 px spacing system is a different thing from a baseline grid, because it aligns box heights and not text baselines. One UX Collective author aligns the text bounding box for exactly that reason, since that is how the text will be implemented in CSS.

Why text drifts off the grid

Half-leading causes the drift. CSS splits the extra line-height evenly above and below each line, so the baseline sits partway into its band instead of on the grid line.

Chrome for Developers (14 January 2025) lists Chrome 133 and Safari 18.2 as supporting text-box-trim, a native fix for it.

The older workaround is to shift the grid. Move the background grid with background-position until body text sits on the lines. It works in any browser, but it fits only one font and size.

Trimming the text box is the better route. text-box: trim-both cap alphabetic cuts the box to cap height at the top and the baseline at the bottom, and since each font carries different half-leading, the same trim values normalize it.

Trimming to ex instead of cap uses the x-height as the top edge, which Chrome’s article says is useful for optical balance in some cases.

After trimming, the box edge is the baseline, so padding and margins in grid multiples seat the baseline on a grid line.

Firefox had not shipped it when that article was published, and the article’s support table showed Firefox as unsupported or behind a flag, depending on the language version. Firefox 154, released on 18 August 2026, added text-box-trim, text-box-edge and the text-box shorthand, so only older Firefox versions still lack it.

Tools that automate it

Gridlover is free and outputs the CSS for a modular scale and vertical rhythm. Basekick is a LESS mixin with a JavaScript function that realigns type to the baseline, so pages keep their vertical rhythm while you compose them.

Capsize comes from the Seek team and reads font metadata to size text by cap height, trimming the space above capitals and below the baseline. Its lineGap option measures from the baseline to the cap height of the next line, while its leading option measures from baseline to baseline.

Capsize’s site notes that cap units are now native in all major browsers and shows a text-box-edge equivalent. For new work in current browsers, native trimming beats a dependency, and Capsize still earns its place where text-box-trim is missing.

If only the scale is missing, a type scale generator gives you sizes to test against the grid.

Where Does a Baseline Grid Break Down?

YouTube player

Trouble starts when something other than body text decides the vertical position. Mixed type sizes do it, and so do images, captions and layouts that reflow. A finer increment or a local grid usually fixes it, and sometimes the answer is to stop snapping.

Mixed type sizes, images and captions

A Layers magazine tip describes a retail ad with five columns of sale listings under subheads, where the leading rarely fit the 12 pt document grid.

The fix was a custom baseline grid on the text frame, set under Object > Text Frame Options > Baseline Options, instead of a forced match.

Images cause their own trouble. Heights need to be multiples of the increment, and a 203 px image on an 8 px grid leaves everything below it 3 px off, because CSS never re-snaps.

Print and screen behave differently here. InDesign re-snaps each aligned paragraph to a grid line, so a misfit stays local. CSS only adds heights, so the same misfit accumulates, which is why Opera’s article says to check margins higher up the page.

Text parked on the pasteboard is a quieter problem. The baseline grid covers spreads, not the pasteboard (Adobe), so that text stays off the grid until it moves onto a page.

Responsive layouts

A grid set once in print design holds for the life of a page size. Screens don’t give you that. The viewport width changes, breakpoints change the type size, and readers can raise their default text size too.

That is why web increments belong in relative units, as Opera’s article does by sizing text in ems so browser text controls still work. When a breakpoint changes the body size, change the unit in the same step, so line-height stays a whole multiple.

Not everyone thinks perfect alignment is worth the effort. Zell Liew’s 2016 reply to the article “Web typography is broken” argues that the gap between text floating in its grid band and text sitting on the line stops being noticeable as lines stack up.

Strict or relaxed alignment

Strict alignment earns its keep on print pages where columns sit side by side, because lines align across columns and pages (Keith Tam’s notes). It also suits design systems that pin type to a grid, as Material Design does.

Single-column screen layouts can relax, since no neighboring column exposes the offset. Text centered inside a component is another case, and Material Design itself allows type off its grid in a button or list item (as quoted in UX Collective).

Relaxing also makes sense once hitting the grid has become the goal. SitePoint’s Alex Walker says he spent too much effort bending elements to it, and calls baselines a tool that should not take over the design.

Elsewhere, hold the increment for spacing and let single lines float.

Baseline Grid FAQ

Where does the baseline grid come from?

From print typesetting. Designers added horizontal rows to column grids to build complex layouts without chance placement, as Teehan+Lax describes. The sources reviewed name no single inventor or date.

How much does a baseline grid help readability?

The sources show a visual benefit, not a measured one. Opera’s developer article calls text set to a grid neater and easier to read, based on a side-by-side example, and none of the sources reviewed contains a controlled reading study.

Can the baseline grid increment in InDesign be a fractional value?

Yes. FontShop’s guide notes that InDesign renders fractional increments, and that 5.718 pt is as valid as 6 pt if it suits the layout.

A common recipe divides the height inside the margins by the number of lines, which rarely gives a whole number.

Will a baseline grid show up in the printed or exported file?

No. Adobe describes the baseline grid as a nonprinting grid, and InDesign hides it in Preview screen mode.

Affinity Publisher offers a preview toggle that hides it as well.

Checking a Layout Against Its Baseline Grid

A layout follows its baseline grid when the overlay shows every line of text and every image edge landing on a grid line. Test the narrowest and widest sizes the layout will reach, not only the one on the canvas.

Check body text first, starting at the top of the page, since on screen the first offset you find explains every offset below it. After that go through headings, subheads and captions, and finish with images, frames and components.

web.dev’s August 2026 report lists Firefox 154, released on 18 August 2026, as adding text-box-trim, which puts text trimming in all three major engines without a library.

Capsize now matters mainly for visitors on older browser versions, a group that shrinks with each release.

Once the rows hold, setting heading sizes in a clear typographic hierarchy is the next job.

Bogdan Sandu
Latest posts by Bogdan Sandu (see all)
Share
Written by Bogdan Sandu

Bogdan Sandu is a seasoned designer who has been designing websites since 2008. Renowned for his expertise in logo design and visual branding, Bogdan has developed a multitude of logos for various clients. His skills extend to creating posters, vector illustrations, business cards, and brochures. Additionally, Bogdan's UI kits were featured on marketplaces like Visual Hierarchy and UI8. He also wrote in the past years on sites like Design Your Way, WebDesignerDepot, WPDean, Designmodo, Speckyboy, Slider Revolution, and more.