# Bento Grid

> A trendy bento box layout with a large hero tile and spanning cells.

- Category: [CSS Layouts](https://copy-css.com/category/layouts)
- Tags: bento, grid, span, dashboard, features
- Live preview: https://copy-css.com/snippets/bento-grid
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<div class="bento">
  <div></div>
  <div></div>
  <div></div>
  <div></div>
</div>
```

## CSS

```css
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 160px;
  gap: 16px;
}

.bento > :nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.bento > :nth-child(4) {
  grid-column: span 2;
}

@media (max-width: 640px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
}
```

## Notes

- This CSS Bento Grid is 19 lines of pure CSS (0.3 KB) with no JavaScript and no dependencies. It uses CSS Grid.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
