CSS Layout Systems Reference

Modern CSS layout systems: Flexbox, CSS Grid, Multi-column, Positioning, and Container Queries with specifications and use cases.

  • JSON4,693 B
  • YAML3,090 B · −34%
  • TOON2,320 B · −51%

CSS layout systems with their specification, axis, use case and browser support: Flexbox, CSS Grid, float-based layout, positioning, multi-column and container queries, extended with subgrid and table layout.

Use it when

  • You need to choose the layout mechanism for a component or a page.
  • You are modernizing legacy float-based CSS.

Watch out for

  • Subgrid support reached all major browsers in 2023; older browsers need a fallback.
  • Float-based layout is legacy; floats are still correct for wrapping text around an image.

The data

Systems

NameSpecAxisUse caseBrowser support
FlexboxW3C CSS3One-dimensionalNavigation bars, centering, equal-height columnsAll modern browsers
CSS GridW3C CSS3Two-dimensionalPage layouts, card grids, dashboardsAll modern browsers
Float-based LayoutCSS2.1LegacyText wrapping around images (deprecated for layout)All browsers
PositioningCSS2Absolute/RelativeOverlays, modals, fixed headersAll browsers
Multi-columnW3C CSS3One-dimensionalMagazine-style text layoutsAll modern browsers
Container QueriesW3C CSS Containment Level 3One-dimensionalComponent-level responsive designChrome 105+, Safari 16+, Firefox 110+
SubgridCSS Grid Level 2Two-dimensionalAligning the contents of nested grids to the parent grid's tracksAll modern browsers (since 2023)
Table LayoutCSS 2.1Two-dimensionalTabular data; auto or fixed column sizingAll browsers

Fields

The shape of this dataset, read from the data itself: every column, its type and a real value. Agents can use this to plan a query without fetching the whole document.

SectionFieldTypeExample
systemsnamestringFlexbox
systemsspecstringW3C CSS3
systemsaxisstringOne-dimensional
systemsuse_casestringNavigation bars, centering, equal-height columns
systemsbrowser_supportstringAll modern browsers

Fetch the same bytes

The static files contain the same reference rows as the API, with no API rate limit. Live metadata, such as view counts, may differ. Use the API for content negotiation; use the static files for a cacheable snapshot.

curl "https://yjtoon.com/api/dataset/css-layout-systems?format=toon"
const res = await fetch(
  "https://yjtoon.com/static-data/dataset/css-layout-systems.toon"
);
const toon = await res.text();

Rate limit: 120 requests per minute per IP, no key and no signup. API reference →

Topics

  • css
  • layout
  • web
  • frontend
  • responsive

Search the library

Search by a topic, title, or keyword.

Start with a collection

Browse all 205 datasets