Light Solid Color Button #162

CSS White light solid 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 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-162">Button 162</button>
Button CSS
.btn-162 {
    box-shadow: 0px -6px 10px rgba(255, 255, 255, 1),
        0px 4px 15px rgba(0, 0, 0, 0.15);
    transition: 0.5s;
    padding: 13px 13px;
    border: none;
    background-color: #f2f2f2;
    border-radius: 0.5em;
    letter-spacing: 1px;
    text-align: center;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    text-decoration: none;
    user-select: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: #000;
    font-size: 16px;
    /*** full width block ***/
    /* width: 100%; */
}

.btn-162:hover {
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
}

.btn-162: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-162:disabled {
    pointer-events: none;
    opacity: .65;
    color: #7e7e7e;
    background: #dcdcdc;
    box-shadow: none;
    text-shadow: none;
}