body { position: absolute; top: 50%; left: 50%; width: 128px; height: 128px; margin: -64px 0 0 -64px; } div { display: inline-block; width: 62px; height: 62px; } div:nth-child(1), div:nth-child(3) { margin-right: 4px; } div:nth-child(1) { background-color: #F25022; } div:nth-child(2) { background-color: #7FBA00; } div:nth-child(3) { background-color: #01A4EF; } div:nth-child(4) { background-color: #FFB901; }