3D Button #120

CSS 3D 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 style

Disabled style

Full width block style

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
Button HTML
<button class="btn-120">Button 120</button>
Button CSS
.btn-120 {
    --shadow_color: #0072a5;
    width: 170px;
    height: 40px;
    background: #0799da;
    box-shadow: -6px 6px 0 0 var(--shadow_color);
    border: none;
    outline: none;
    position: relative;
    text-transform: uppercase;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    cursor: pointer;
    text-decoration: none;
    user-select: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    /*** full width block ***/
    /* width: 100%; */
}

.btn-120:active {
    --active_shadow_color: #005f8a;
    box-shadow: -3px 3px 0 0 var(--active_shadow_color);
    top: 3px;
    left: -3px;
    background-color: #067fb5;
}

.btn-120::before {
    content: '';
    position: absolute;
    background: none;
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-right: 6px solid var(--shadow_color);
    border-left-width: 0;
    top: 0;
    left: -6px;
}

.btn-120:active::before {
    border: 3px solid transparent;
    border-right: 3px solid var(--active_shadow_color)
}

.btn-120::after {
    content: '';
    position: absolute;
    background: none;
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-top: 6px solid var(--shadow_color);
    border-bottom-width: 0;
    bottom: -6px;
    right: 0;
}

.btn-120:active:after {
    border: 3px solid transparent;
    border-top: 3px solid var(--active_shadow_color);
}

/*** disabled style ***/
.btn-120:disabled {
    pointer-events: none;
    opacity: .65;
    color: #7e7e7e;
    background: #dcdcdc;
    text-shadow: none;
    box-shadow: -6px 6px 0 0 #bababa;
    --shadow_color: #bababa;
}