<div style=" position: relative; "> <!-- Docked at the top right corner --> <div style=" position: absolute; right: 0; top: 0; transform: translate(50%, -50%); /* Center the content */ align-items: center; display: flex; justify-content: center; "> ... </div> ... </div>