Check out this code snippet! I'm new to coding, so let me know if you see any errors or ways it could be improved.
button {
font-size: 10px;
font-family: roboto, Arial;
color: white;
background-color: rgb(59, 102, 241);
border-radius: 100px;
border-width: 0px;
width: 190px;
height: 25px;
caret-color: transparent;
transition: all 0.3s;
}
button:hover {
background-color: rgb(87, 125, 250);
cursor: pointer;
}
button:active {
font-size: 9px;
padding: 1px;
}
Feel free to add HTML here!
I'm trying to make the button 'shrink' when clicked, but adjusting the width and height isn't quite working as expected - it shrinks to a corner instead of the middle. Any tips on how to fix this?