.button { width: 50px; height: 50px; display: flex; justify-content: center; align-items: center; cursor: pointer; } .button > div { display: flex; justify-content: center; align-items: center; position: absolute; }