Skip to main content

Fluid Layout

UI Design

What is a Fluid Layout

A fluid layout is a layout that stretches and shrinks with the screen. Widths are set in relative units, such as percentages, instead of fixed pixels, so content fills the available space on any device.

How a Fluid Layout works

  • Relative widths: Columns use percentages or flexible units
  • Flexible images: Images never grow wider than their container
  • Min and max limits: Content stops stretching at a comfortable width
  • Reflow: Text wraps to fit the screen

Fluid vs. Fixed Layouts

A fixed layout uses set pixel widths. It causes horizontal scrolling on small screens and leaves empty space on large ones. A fluid layout avoids both. Older sources call it a liquid layout.

When to use a Fluid Layout

Use fluid layouts for almost every web page. Combine them with breakpoints to change the structure when needed, which together make responsive design. Set a maximum width for text so lines do not grow too long to read.

Frequently asked questions

What is the difference between a fluid and a fixed layout?

A fixed layout has set widths in pixels, so it causes horizontal scrolling on small screens and empty space on large ones. A fluid layout uses relative widths, such as percentages, so it stretches and shrinks with the screen.

Is a fluid layout the same as responsive design?

Not quite. A fluid layout is one part of responsive design. Responsive design combines fluid grids, flexible images and media queries that change the layout at breakpoints.

Is a liquid layout the same as a fluid layout?

Yes. "Liquid", "fluid", "flexible" and "elastic" were all used for layouts that adapt to the browser width before the term responsive design became common in 2010.