# Fluid Layout

> A layout whose widths stretch with the screen instead of staying fixed.

**Field:** Design  
**Category:** Web Design  
**Also known as:** Liquid Layout, Flexible Layout, Fluid Grid

## Think of it like

It is like a rubber band. It stretches and shrinks to fit the space it has.

## Definition

A fluid layout uses sizes that stretch with the screen, like percentages or fractions, instead of fixed pixel widths. Columns grow and shrink smoothly between breakpoints. A maximum width keeps lines of text from getting too long on very wide screens. Fluid layouts are one of the three parts of responsive design.

## Example

A blog's text column is 90% of the screen on a phone. On a wide monitor it stops growing at 700 pixels.

## Example code

```css
.content {
  width: 90%;
  max-width: 700px;
  margin-inline: auto;
}
```

The column stretches with the screen but never grows past 700 pixels.

## Why it matters

It fills the space between breakpoints, so no screen width looks broken.

## Common mistake

Letting text run the full width of a big screen. Lines get too long to read.

## Three principles

- **Relative sizes.** Percent and fractions.
- **Smooth in between.** Between breakpoints.
- **Cap the width.** A max-width for text.

## Related terms

- [Responsive Web Design](https://learn.benibix.com/term/design/responsive-web-design)
- [Line Length](https://learn.benibix.com/term/design/line-length)
- [Grid System](https://learn.benibix.com/term/design/grid-system)
- [Flexbox](https://learn.benibix.com/term/development/flexbox)

---

Source: https://learn.benibix.com/term/design/fluid-layout
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
