html, body { margin: 0; padding: 0; width: 100%; height: 100%; } .map { background: black; } .toolbar { height: 64px; background-color: black; } .button { display: inline-block; border-radius: 2px; width: 64px; height: 64px; /*margin: 2px;*/ background-position: 0 -16; background-repeat: no-repeat; background-size: cover; transition: all 250ms; } .button:hover { border-radius: 2px; border-color: purple; background-color: lightgray; } .button.active { border-radius: 2px; border-color: purple; background-color: gray; }