# Spot the bug - #65

**URL:** <https://forum.kirupa.com/t/spot-the-bug-65/682274>\
**Category:** web dev\
**Created:** [June 24, 2026, 7:01am UTC](https://forum.kirupa.com/t/spot-the-bug-65/682274 "2026-06-24T07:01:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ellen1979](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/ellen1979/32/31260_2.png) [@Ellen1979](https://forum.kirupa.com/u/Ellen1979)\
**Post date:** [June 24, 2026, 7:01am UTC](https://forum.kirupa.com/t/spot-the-bug-65/682274/1 "2026-06-24T07:01:16Z")

</div>

Layout bug is hidden in plain sight.

```css
.dashboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 12px;
}
.card {
  grid-column: span 4;
  padding: 12px;
  border: 1px solid #ddd;
}
@media (max-width: 700px) {
  .dashboard {
    grid-template-columns: 1fr;
  }
}

```

Reply with what is broken and how you would fix it.

---

<div class="post-metadata">

**Author:** ![sarah\_connor](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/sarah_connor/32/31258_2.png) [@sarah\_connor](https://forum.kirupa.com/u/sarah_connor)\
**Post date:** [June 25, 2026, 7:40am UTC](https://forum.kirupa.com/t/spot-the-bug-65/682274/2 "2026-06-25T07:40:19Z")

</div>

`grid-column: span 4` is the bug. You’ve only got 3 explicit columns, so each `.card` is trying to span past the grid and the browser may create an implicit 4th track or do odd auto-placement stuff.

Fix it by spanning the full row instead of a magic number:

```auto
.card { grid-column: 1 / -1; }

```
