Rainbow Color Background Button #157

CSS Rainbow color background 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-157">Button 157</button>
Button CSS
.btn-157 {
    font-size: 16px;
    outline: 0;
    border: 0;
    background: linear-gradient(110.7deg,rgb(255,81,47) 1.7%,
            rgb(255,167,47) 8.2%,
            rgb(218,253,1) 16.2%,
            rgb(98,234,20) 23.4%,
            rgb(69,193,42) 32.8%,
            rgb(7,249,149) 43.7%,
            rgb(6,200,217) 55.3%,
            rgb(18,51,233) 65.5%,
            rgb(122,59,202) 74.5%,
            rgb(231,7,249) 82.3%,
            rgb(202,59,163) 91.4%);
    box-shadow: 0px 0.01em 0.01em rgb(45 35 66 / 40%),0px 0.3em 0.7em -0.01em rgb(45 35 66 / 30%),inset 0px -0.01em 0px rgb(58 65 111 / 50%);
    padding: 10px 23px;
    border-radius: 5px;
    color: #fff;
    text-shadow: 0 1px 0 rgb(0 0 0 / 40%);
    transition: box-shadow 0.15s ease,transform 0.15s ease;
    font-family: Arial,Helvetica,sans-serif;
    cursor: pointer;
    text-decoration: none;
    user-select: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.btn-157:hover {
    box-shadow: 0px 0.1em 0.2em rgb(45 35 66 / 40%), 0px 0.4em 0.7em -0.1em rgb(45 35 66 / 30%);
    transform: translateY(-0.1em);
}

.btn-157:active {
    box-shadow: none;
    transform: translateY(0em);
}

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