#user-alert-box { position: fixed; bottom: 0; left: 0; width: 71%; background-color: #333; color: #fff; padding: 15px; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; z-index: 9999; } #user-alert-box a { color: #1e90ff; text-decoration: none; } #user-alert-box button { background-color: #155799; color: #fff; border: none; padding: 10px 15px; cursor: pointer; margin-top: 10px; } @media(min-width: 768px) { #user-alert-box { max-width: 600px; flex-direction: row; justify-content: space-between; } }