Outline Gradient Color Button #156
CSS Outline gradient color button
Adding these style CSS buttons to your website is easier than you think. Simply copy and paste the CSS code provided with each button design into your stylesheet
Preview Button Style
You can view the default style of buttons, the disabled state mode style of buttons, and the full-width block style of the button here. Some buttons style may not display in full width format
Button Source Code HTML and CSS
Click the button below to download the source code or edit it live.
To copy this click on the icon at the top right of the code box
.btn-156 {
--BG_color: #2e373a;
--border_radius: 10px;
--border_thikness: 2px;
color: #e9e9e9;
position: relative;
width: 140px;
height: 40px;
padding: 0;
border: none;
background: none;
font-weight: 550;
letter-spacing: 1px;
transition: all 0.3s;
font-family: Arial, Helvetica, sans-serif;
cursor: pointer;
text-decoration: none;
user-select: none;
display: inline-flex;
justify-content: center;
align-items: center;
z-index: 1;
font-size: 16px;
margin: 3px 3px;
}
.btn-156 span {
display: flex;
width: 100%;
height: 100%;
justify-content: center;
align-items: center;
position: relative;
z-index: 11;
background: var(--BG_color);
border-radius: var(--border_radius);
}
.btn-156::before {
content: "";
position: absolute;
border-radius: calc(var(--border_radius) + 2px);
left: calc(var(--border_thikness)* -1);
top: calc(var(--border_thikness)* -1);
width: calc(100% + var(--border_thikness)* 2);
height: calc(100% + var(--border_thikness)* 2);
padding: 2px;
background: radial-gradient(circle at center center, #f9ff00, #ff4b01);
z-index: -1;
box-sizing: border-box;
}
.btn-156:hover span {
background: radial-gradient(circle at center center, #f9ff00, #ff4b01);
color: #000000;
}
/*** disabled style ***/
.btn-156:disabled {
pointer-events: none;
opacity: .65;
color: #666666;
background: none;
text-shadow: none;
box-shadow: none;
}
.btn-156:disabled::before {
background: #cccccc;
}