Fluid Layout
UI DesignWhat 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.
Related terms
View all UI Design terms →Breakpoints
Breakpoints are the screen widths at which a layout changes . Below or above a breakpoint, a responsive design switches columns, moves…
Responsive Web Design
Responsive Web Design (RWD) is an approach to web design that ensures web pages render well across different devices and screen sizes. It…
Adaptive Design
Adaptive design is an approach that serves different fixed layouts for different devices or screen sizes . The system detects the device…
Fluid Typography
Fluid typography is text that scales smoothly with the screen width . Instead of jumping between fixed sizes at breakpoints, a heading…
Grid System
A Grid System is a structure of intersecting lines that creates a framework for organizing content in a layout. It provides a systematic…
Mobile-First Design
Mobile-first design is an approach where teams design for small screens first , then expand the design for larger screens. Luke Wroblewski…
