CSS Grid & Flexbox Builder

Container

Columns
Rows

Items

6

Click an item in the preview to size or place it individually.

Responsive

Preview

Code


      

Built and previewed entirely in this browser. The preview is real CSS Grid or Flexbox, applied directly to the elements you see — never a stylesheet built from what you type, so nothing here can reach outside this box regardless of what you name the container class.

The CSS Grid & Flexbox Builder needs JavaScript: the preview and the generated code are both built live in this browser. With JavaScript switched off there is nothing to do the work.