We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS

Layout mode Redirect 1

Jump to:

A CSS layout mode, sometimes abbreviated as layout, is an algorithm determining the position and the size of boxes based on the way they interact with their sibling and ancestor boxes. There are several of them:

  • The block layout, designed for laying out documents. The block layout contains document-centric features, like the ability to float elements or to lay them out over multiple columns.
  • The inline layout, designed for laying out texts.
  • The table layout, designed for laying out tables.
  • The positioned layout, designed for positioning elements without much interaction with other elements.
  • The flexible box layout, designed for laying out complex pages that can be resized smoothly.
  • The grid layout, designed for layout out elements relatively to a fixed grid.

Note: not all CSS properties apply to all layout modes. Most of them apply to one or two of them and has no effect if set on an element participating on another layout mode.

See also

Document Tags and Contributors

Last updated by: Sheppy,