CSS and layout

CSS Grid Generator

This generator is convenient when you need to quickly collect a grid of cards, cases, products or content blocks and immediately see the result.

FreeNo registrationOnline in browser
1
2
3
4
5
6

CSS

display: grid;
grid-template-columns: repeat(3, minmax(180px, 1fr));
grid-template-rows: repeat(2, 96px);
gap: 16px;

What the tool can do

  • Setting up columns, rows and gap.
  • Real-time preview of the adaptive grid.
  • Ready CSS with repeat() and minmax().

How to use

  1. Set the number of columns and rows.
  2. Set up the gap and minimum width of the cards.
  3. Copy the CSS for the page or component.

Where is this service useful?

Catalog of goods and services.
Grid of cases and articles.
Landing page and dashboard interfaces.

FAQ

When is it better to use Grid instead of Flexbox?

When elements need to be controlled by columns and rows at once, and not just along one axis.

Is there an adaptive code option?

Yes. The generator shows an option with minmax(), which is good for adaptive meshes.

Related tools

All instruments
NBM-IT

Need a tool for your process?

We can make a custom calculator, validator, integration helper or audit panel for your data, CRM and internal scripts.