styles a button
Wed Apr 10 2024 02:56:08 GMT+0000 (Coordinated Universal Time)
Saved by
@skatzy
<!DOCTYPE html>
<html>
<head>
<style>
.button {
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
}
.button1 {background-color: #04AA6D;} /* Green */
.button2 {background-color: #008CBA;} /* Blue */
</style>
</head>
<body>
<button class="button button1">Green</button>
<button class="button button2">Blue</button>
</body>
</html>
content_copyCOPY
https://www.w3schools.com/tags/tag_button.asp
Comments