div.outer { align-items: center; background: #333; border-radius: 5px; color: #fff; display: flex; flex-direction: row; user-select: none; vertical-align: middle; width: fit-content; } div.outer:hover { background: #444; } div.outer-label { margin-right: auto; padding: 5px 5px 5px 10px; } div.outer-arrow { padding: 5px 10px 5px 5px; }