.actions { display: inline-flex; flex-direction: column; width: 120px; } button { border: none; color: white; padding: 15px 32px; text-align: center; display: inline-block; width: 100%; font-size: 16px; border-radius: 5px; color: black; } .validate { background-color: green; } .cancel { background-color: red; } .edit { background-color: orange; }