#grid { /* create spacing top and right for the group */ margin-top: 20px; margin-right: 20px; } #grid .item, #grid .item.hovering { /* separate each item using padding bottom and left only */ box-sizing: border-box; padding-bottom: 20px; padding-left: 20px; } #grid .item a { position: relative; }