h { display: flex; align-items: center; justify-content: space-between; flex-direction: column; } h span { display: flex; width: 25vh; flex-direction: row; align-items: center; } h svg { position: absolute; top: 0; width: 100%; }