        display: inline-block;
        position: relative;
      }
      .grid {
        position: absolute;
        width: 350px;
        height: 350px;
      }
      .snap:target {
        background-color: blue;
      }
    </style>
    <div class="scroller" id="scroller">
      <div class="large-space"></div>
      <div class="grid" id="grid">
        <div id="box1" class="snap box">Box 1</div>
        <div id="box2" class="snap box">Box 2</div>
        <div id="box3" class="snap box">Box 3</div>
      