Keyboard Keys Style Button White Color #158

CSS Keyboard keys style button white color

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-158">Button 158</button>
Button CSS
.btn-158 {
    box-sizing: border-box;
    text-align: center;
    padding: 14px 13px;
    color: #555;
    cursor: pointer;
    margin: 0 8px;
    text-shadow: 0 0.5px 1px #777, 0 2px 6px #f2f2f2;
    border: solid 1px #f2f2f2;
    border-radius: 10px;
    background: linear-gradient(180deg, #f9f9f9 0%, #D2D2D2 80%, #c0c0c0 100%);
    transition: box-shadow 0.3s ease, transform 0.15s ease;
    box-shadow: 0 0 1px #888, 0 1px 0 #fff,
        0 6px 0 #C0C0C0,
        0 8px 17px rgba(68, 68, 68, 0.4),
        2px 1px 4px rgba(68, 68, 68, 0.25),
        -2px 1px 4px rgba(68, 68, 68, 0.25),
        0 9px 16px rgba(68, 68, 68, 0.1);
    font-family: Arial, Helvetica, sans-serif;
    text-decoration: none;
    user-select: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    /*** full width block ***/
    /* width: 100%; */
}

.btn-158:hover,
.btn-158:focus {
    box-shadow: 0 0 1px #888, 0 1px 0 #fff,
        0 4px 0 #C0C0C0, 0 2px 35px rgba(68, 68, 68, 0.3),
        2px 2px 4px rgba(68, 68, 68, 0.25),
        2px 2px 4px rgba(68, 68, 68, 0.25),
        0 7px 4px rgba(68, 68, 68, 0.1);
    transform: translateY(2px);
}

.btn-158:active {
    box-shadow: 0 0 1px #888, 0 1px 0 #fff, 0 0 0 #C0C0C0,
    0 0px 30px rgba(68, 68, 68, 0.15),
    2px 2px 4px rgba(68, 68, 68, 0.25), 
    -2px 2px 4px rgba(68, 68, 68, 0.25),
    0 0px 4px rgba(68, 68, 68, 0.25);
    transform: translateY(4px);
}

/*** disabled style ***/
.btn-158:disabled {
    pointer-events: none;
    opacity: .65;
    color: #7e7e7e;
    background: #dcdcdc;
    box-shadow: none;
    text-shadow: none;
}