.mybutton2{ border: none; outline: none; text-align: center; font-size: 15px; padding: 10px 22px; background-color: red; color: white; cursor: pointer; width: auto; height: auto; border-radius: 30px; } .mycenter{ display: flex; align-items: center; justify-content: center; }