<button>click me</button>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
width: 100%;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
button {
background-color: rgb(241, 72, 72);
color: white;
padding: 0.75rem 2.5rem;
border-radius: 2rem;
border: none;
cursor: pointer;
text-transform: uppercase;
font-size: medium;
font-weight: bold;
transition: transform 0.2s, opacity 0.1s;
}
button:hover {
opacity: 0.9;
}
button:active {
transform: scale(0.95);
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.