body{ font-family: Arial, sans-serif; } .list { display: flex; justify-content: center; flex-direction: column; } .li { text-decoration: none; } .div { display: flex; align-items: center; } .button { margin: 5px 15px; height: 25px; border: 1px solid tan; border-radius: 3px; cursor: pointer; background-color: cornsilk; color: darkred; position: relative; font-weight: 600; left: 10px; } .button:hover { height: 25px; border: 1px solid darkred; border-radius: 3px; cursor: pointer; background-color: darkred; color: white; }