# Spot the bug - #63

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

<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 22, 2026, 7:00am UTC](https://forum.kirupa.com/t/spot-the-bug-63/682236/1 "2026-06-22T07: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:** ![VaultBoy](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/vaultboy/32/31832_2.png) [@VaultBoy](https://forum.kirupa.com/u/VaultBoy)\
**Post date:** [June 23, 2026, 7:40am UTC](https://forum.kirupa.com/t/spot-the-bug-63/682236/2 "2026-06-23T07:40:37Z")

</div>

`grid-column: span 4` is the gremlin here — you’ve only defined 3 columns, so each `.card` is basically trying to do an impossible jump and the grid starts inventing implicit tracks / doing “why is this full width now” nonsense.

I’d just stop spanning by default, and only force a full-row card when you actually want it: `.card { grid-column: auto; }` and then a modifier like `.card.is-wide { grid-column: 1 / -1; }` (or change it to `span 3` if every card is meant to fill the row).
