Book a call Free rebuild
Home/Glossary/Design/Fluid Layout

Fluid Layout

July 8, 2022 Updated November 16, 2026 2 min read

Design glossaryA fluid layout sizes its columns in percentages rather than fixed pixels, so the page stretches or shrinks with the browser window.

A fluid layout, sometimes called a liquid layout, sizes its columns, gaps, and images relative to the browser window instead of in fixed pixels. A sidebar set to 25 percent of the page stays a quarter of the width whether the window is 800 or 1,600 pixels wide, so the design stretches and shrinks with the screen rather than leaving empty margins or a horizontal scroll bar.

Fluid, fixed, and responsive

  • Fixed layouts set widths in pixels, for example a 960-pixel page. They look exactly as designed at one size, and break on screens narrower than that.
  • Fluid layouts set widths in relative units, so everything scales. On their own, they can squeeze into cramped columns on a phone and stretch into very long lines on a wide monitor.
  • Responsive layouts combine a fluid grid with flexible images and media queries that rearrange the design at chosen breakpoints, for instance stacking three columns into one on small screens. Almost every modern website, and nearly every current WordPress theme, works this way.

In other words, fluid sizing is one ingredient of responsive design, not a rival to it.

How it works in CSS

  • Relative units: percentages, viewport units (vw), and the fr unit in CSS Grid share out the available space.
  • Limits: max-width stops text from running too wide, and min(), max(), and clamp() keep sizes within a sensible range.
  • Flexible media: max-width: 100% with height: auto lets images shrink with their column without distorting.
  • Fluid type: font-size: clamp(1.5rem, 1rem + 2.5vw, 3rem) grows a heading with the screen between a minimum and a maximum, with no breakpoints at all, and the rem part keeps it responsive to browser zoom.

Fluid layouts in WordPress

Block themes describe much of this in theme.json. The contentSize and wideSize layout settings cap how wide normal and wide-aligned content can get, while full-width blocks run edge to edge. Fluid typography can be switched on in the same file, so preset font sizes scale smoothly between a minimum and a maximum. Classic themes handle the same jobs in their stylesheets.

Common mistakes

  • No maximum width. Body text that spans a whole widescreen monitor is tiring to read. Most designers aim for roughly 45 to 75 characters a line.
  • Fixed-width children. One table, embed, or image with a pixel width wider than the screen breaks an otherwise fluid page and causes sideways scrolling.
  • Scaling text with the viewport alone. A size set only in vw becomes tiny on phones and huge on monitors, and does not respond to browser zoom properly. Wrap it in clamp() with a rem component.

Source: MDN, Responsive design.

WP Services

WordPress services at revolutionary pricing.

Productized WordPress services, from builds to care, delivered by Seahawk and tracked in one app. For the WordPress lovers.