Skip to content
BENIBIX Learn

Fluid Layout

Design🌐 Web DesignResponsive Layout

Also known as Liquid Layout, Flexible Layout, Fluid Grid

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

Think of it like

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

Example

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

Why it matters

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

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 code

css
.content {
  width: 90%;
  max-width: 700px;
  margin-inline: auto;
}
The column stretches with the screen but never grows past 700 pixels.

Common mistake

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

Key takeaways

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