xxxxxxxxxx
.button {
background-color: #4CAF50; /* Green */
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
}
.button:hover {
background-color: #45a049; /* Dark green */
}
.button:active {
background-color: #3e8e41; /* Even darker green */
}
xxxxxxxxxx
<a href="#" class="butt">Ceramics</a>
.butt {
box-shadow:inset 0px 1px 0px 0px #fce2c1;
background:linear-gradient(to bottom, #ffc477 5%, #fb9e25 100%);
background-color:#ffc477;
border-radius:11px;
border:2px solid #eeb44f;
display:inline-block;
cursor:pointer;
color:#ffffff;
font-family:Arial;
font-size:16px;
font-weight:bold;
padding:8px 18px;
text-decoration:none;
text-shadow:0px 1px 0px #cc9f52;
}
.butt:hover {
background:linear-gradient(to bottom, #fb9e25 5%, #ffc477 100%);
background-color:#fb9e25;
}
.butt:active {
position:relative;
top:1px;
}
xxxxxxxxxx
<style>
.btn {
border: none;
border-radius: 12px;
width: 80px;
height: 30px;
border-color: #FFB45C;
background: linear-gradient(146.11deg, #FFDFBA 20.43%, rgba(255, 255, 255, 0) 79.91%), linear-gradient(202.81deg, #FF6636 38.99%, rgba(255, 255, 255, 0) 85.2%), #FFB45C;
}
.btn:hover {
background: linear-gradient(red, yellow);
}
</style>
<button class='btn'>clcik me</button>
xxxxxxxxxx
<a href="#" class="myButton">turquoise</a>
.myButton {
-moz-box-shadow: 0px 10px 14px -7px #276873;
-webkit-box-shadow: 0px 10px 14px -7px #276873;
box-shadow: 0px 10px 14px -7px #276873;
background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #599bb3), color-stop(1, #408c99));
background:-moz-linear-gradient(top, #599bb3 5%, #408c99 100%);
background:-webkit-linear-gradient(top, #599bb3 5%, #408c99 100%);
background:-o-linear-gradient(top, #599bb3 5%, #408c99 100%);
background:-ms-linear-gradient(top, #599bb3 5%, #408c99 100%);
background:linear-gradient(to bottom, #599bb3 5%, #408c99 100%);
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#599bb3', endColorstr='#408c99',GradientType=0);
background-color:#599bb3;
-webkit-border-radius:8px;
-moz-border-radius:8px;
border-radius:8px;
display:inline-block;
cursor:pointer;
color:#ffffff;
font-family:Arial;
font-size:20px;
font-weight:bold;
padding:13px 32px;
text-decoration:none;
text-shadow:0px 1px 0px #3d768a;
}
.myButton:hover {
background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #408c99), color-stop(1, #599bb3));
background:-moz-linear-gradient(top, #408c99 5%, #599bb3 100%);
background:-webkit-linear-gradient(top, #408c99 5%, #599bb3 100%);
background:-o-linear-gradient(top, #408c99 5%, #599bb3 100%);
background:-ms-linear-gradient(top, #408c99 5%, #599bb3 100%);
background:linear-gradient(to bottom, #408c99 5%, #599bb3 100%);
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#408c99', endColorstr='#599bb3',GradientType=0);
background-color:#408c99;
}
.myButton:active {
position:relative;
top:1px;
}
xxxxxxxxxx
.bn14 {
font-family: lato,sans-serif;
font-weight: bold;
font-size: 1em;
letter-spacing: 0.1em;
text-decoration: none;
color: #ffffff;
display: inline-block;
padding: 10px 40px 10px 40px;
position: relative;
border: 3px solid #ffffff;
border-radius: 25px;
}
xxxxxxxxxx
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Perfect Button Tutorial BY Sampanna Bhattarai</title>
</head>
<body>
<style>
*{
margin: 0;
padding: 0;
font-family: sans-serif;
}
body{
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
background: #000;
}
body button{
background: linear-gradient(rgb(25, 255, 156),rgb(119, 157, 255),rgb(0, 195, 255));
color: rgb(255, 255, 255);
outline: none;
border: none;
font-size: 50px;
width: 5em;
border-radius: 12px;
cursor: pointer;
transition: all 0.9s ease-in-out;
}
body button:hover{
border-radius: 19px;
background-color: aqua;
box-shadow: 0px 0px 09px 10px rgba(0, 0, 255, .2),
0px 0px 09px 10px rgba(255,255,255, .2)
;
}
</style>
<button>Click</button>
<!-- I am Sampanna bhattarai -->
</body>
</html>
xxxxxxxxxx
<!DOCTYPE html>
<html>
<head>
<style>
/* CSS styles for the button */
button {
background-color: #4CAF50; /* Green background color */
border: none; /* Remove border */
color: white; /* Font color */
padding: 15px 32px; /* Padding for spacing */
text-align: center; /* Center align text */
text-decoration: none; /* Remove underline */
display: inline-block; /* Display as inline block */
font-size: 16px; /* Font size */
margin: 4px 2px; /* Margin for spacing */
cursor: pointer; /* Cursor on hover */
border-radius: 8px; /* Rounded corners */
}
</style>
</head>
<body>
<!-- HTML button element -->
<button>Click me</button>
</body>
</html>