Fluid layout
A fluid layout is a layout whose dimensions adapt continuously to available space, commonly using relative rather than fixed measurements.
CSS in Depth, Second Edition
A fluid layout is a web layout whose dimensions adapt continuously to the available viewport size rather than relying on fixed dimensions.
- How it is used
- Supports responsive design by keeping page containers and columns adaptable across viewport widths.
- How deep it goes
- Explains definitions, fixed-layout contrasts, percentage sizing, default browser behavior, flexbox constraints, and image overflow prevention.
- Examples
- Uses one-, two-, or three-column pages, percentage-based main and sidebar columns, and responsive srcset images.
- What you can do after
- Build it from scratch by sizing containers fluidly, allowing columns to shrink, and preventing images from overflowing.
Read how CSS in Depth, Second Edition explains fluid layout →
Math for Web Design
A fluid layout is a web layout whose dimensions and spacing adjust continuously as the available viewport size changes.
- How it is used
- Uses proportional widths and spacing to keep layouts adaptable across changing screen sizes.
- How deep it goes
- Explains the three-stage conversion from fixed dimensions through percentage calculations to responsive CSS implementation.
- Examples
- Demonstrates fixed and liquid article-aside layouts using 960px containers, percentage columns, padding, and parent-child width calculations.
- What you can do after
- Build it from scratch by choosing a maximum width, converting child dimensions to percentages, and scaling related spacing.
Web Design Playground
A responsive page layout approach in which horizontal dimensions are expressed with relative units so content expands or contracts with the viewport.
- How it is used
- Builds responsive page layouts that resize across screens without requiring horizontal scrolling.
- How deep it goes
- Explains maximum widths, parent-based percentages, conversion calculations, and the narrow-column limitation before responsive refinements.
- Examples
- Uses a 960-pixel maximum container, a 75-percent child calculation, device-size comparisons, and a Playground conversion exercise.
- What you can do after
- Build it from scratch by replacing fixed widths with parent-relative percentages and applying a sensible maximum width.
Also covered in
What to know first
- media queryA media query is a CSS conditional rule that applies styles when specified media types or presentation-environment features match.
- paddingPadding is the provision of extra values, characters, bytes, or space around or within data or an element to meet length, boundary, block-size, spacing, or alignment requirements.
- proportionA ratio expressing a quantity relative to a whole or reference quantity, commonly represented as a fraction, decimal, or percentage.
- block-level elementA block-level element is an HTML element that participates in block layout, typically starting on a new line and occupying the available width of its container.
Related concepts
- proportionuses · A ratio expressing a quantity relative to a whole or reference quantity, commonly represented as a fraction, decimal, or percentage.
- fixed-width layoutcontrasts with · A fixed-width layout is a presentation layout whose primary dimensions remain fixed rather than adapting automatically to the available display or viewport width.
- responsive designused by · Responsive design is an approach to designing web interfaces whose layout and presentation adapt to different screen sizes, viewports, and device characteristics.
- fr unituses · The CSS fr unit is a flexible Grid track-sizing unit representing a share of the grid container’s leftover free space.
- CSS math functionuses · A CSS math function is a built-in CSS function that evaluates mathematical values or expressions in style declarations.
Questions about fluid layout
What is fluid layout?
A fluid layout is a layout whose dimensions adapt continuously to available space, commonly using relative rather than fixed measurements.
Which Manning books explain fluid layout?
CSS in Depth, Second Edition, Math for Web Design and Web Design Playground.
What should I know before learning fluid layout?
Manning books that teach fluid layout usually introduce media query, padding, proportion and block-level element first.
What is the difference between fluid layout and fixed-width layout?
A fluid layout is a layout whose dimensions adapt continuously to available space, commonly using relative rather than fixed measurements. A fixed-width layout is a presentation layout whose primary dimensions remain fixed rather than adapting automatically to the available display or viewport width.
What is fluid layout also called?
Fluid layout is also called liquid layout.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.


