# Spot the bug - #198: Card Grid

**URL:** <https://forum.kirupa.com/t/spot-the-bug-198-card-grid/684338>\
**Category:** web dev\
**Created:** [December 2, 2026, 4:05pm UTC](https://forum.kirupa.com/t/spot-the-bug-198-card-grid/684338 "2026-12-02T16:05:25Z")\
**Posts on this page:** 1\
**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:** [December 2, 2026, 4:05pm UTC](https://forum.kirupa.com/t/spot-the-bug-198-card-grid/684338/1 "2026-12-02T16:05:25Z")

</div>

A quirky CSS layout bug hides in plain sight

```html
<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8" />
  <title>Spot the Bug</title>
  <style>
    .frame { width: 320px; height: 220px; border: 2px solid #333; display: grid; grid-template-columns: 1fr 2fr; grid-gap: 6px; }
    .item { background: #8fb; padding: 8px; color: #fff; text-align: center; }
    .item.wide { grid-column: 2 / 3; }
  </style>
</head>
<body>
  <div class="frame" role="region" aria-label="layout frame">
    <div class="item">A</div>
    <div class="item wide">B</div>
    <div class="item">C</div>
  </div>
  <p>Note: The second tile should span the second column only on wide screens.</p>
</body>
</html>

```

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