# Spot the bug - #48

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

<div class="post-metadata">

**Author:** ![Yoshiii](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/yoshiii/32/31156_2.png) [@Yoshiii](https://forum.kirupa.com/u/Yoshiii)\
**Post date:** [June 7, 2026, 7:00am UTC](https://forum.kirupa.com/t/spot-the-bug-48/681959/1 "2026-06-07T07:00:08Z")

</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 8, 2026, 7:20am UTC](https://forum.kirupa.com/t/spot-the-bug-48/681959/2 "2026-06-08T07:20:30Z")

</div>

`grid-column: span 4` is busted because the grid only defines 3 columns, so each card is trying to occupy a 4th track that isn’t there and placement gets weird fast.

I’d set it to `grid-column: 1 / -1` if the intent is “cards go full width,” or just change it to `span 3` to match the actual grid.
