Learn Mode

IR Layout

Define container size, grid behavior, and responsiveness.

Objective

Understand the layout object in IR1.1.

The layout object controls the page structure.

Container settings control maximum width and side spacing.

Grid tells DaizLab how sections should generally arrange content.

Responsive tells the engine the page should adapt to smaller screens.

Syntax
"layout": {
  "container": {
    "maxWidth": "1180px",
    "padding": "32px"
  },
  "grid": "mixed",
  "responsive": true
}
Practice Editor
Temporary only. No local save. No cloud save. No compile quota used.
Notes

The current compiler uses a practical responsive grid.

Later versions can make grid behavior more advanced.

Common Mistakes

Using numbers instead of CSS strings like 1180px.

Setting responsive to a string instead of boolean true or false.