Interactive Bento Grid Builder
Design beautiful, asymmetric Bento Box layouts visually. Drag sliders to adjust rows, columns, and gaps, and click on any card to customize its row or column spans in real time.
Grid Configuration
3
3
16px
bento-preview-canvas
Generated CSS Code
/* Your CSS will generate here */
What is a Bento Grid Layout?
A Bento Grid layout is a modern visual design trend inspired by traditional Japanese bento boxes, featuring compartmentalized sections of varying widths and heights. This grid-based system is perfect for showcasing product highlights, portfolios, stats dashboards, and visually engaging feature landing pages.
Core CSS Grid Properties Explained
Bento grids rely heavily on these fundamental CSS properties:
display: grid;: Defines the container as a grid layout context.grid-template-columns: Specifies the number and size of columns. In our builder, we userepeat(N, 1fr)to generate evenly sized columns.gap: Adjusts the spacing between the grid cards.grid-column: span X;&grid-row: span Y;: Declared on grid items to define how many grid columns or rows the specific card should expand across.
Making Bento Grids Responsive
To make Bento grids adapt perfectly on mobile phones, developers combine CSS media queries with grid template resizing or auto-fitting:
/* Mobile first: single column */
.bento-container {
display: grid;
grid-template-columns: 1fr;
gap: 16px;
}
/* Tablet & Desktop: Multi-column Bento Grid */
@media (min-width: 768px) {
.bento-container {
grid-template-columns: repeat(3, 1fr);
}
.card-wide { grid-column: span 2; }
.card-tall { grid-row: span 2; }
}