"Bootstrap Gradient Button"
Bootstrap 4.1.1 Snippet by akshayannadate

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <h1 class="text-center">Bootstrap Gradient Button</h1> <hr class="my-5" /> <h4>Normal Buttons</h4> <div class="row"> <div class="col"> <button class="col btn btn-purple-moon">Purple Moon</button> </div> <div class="col"> <button class="col btn btn-ultra-voilet">Ultra Voilet</button> </div> <div class="col"> <button class="col btn btn-pink-moon">Pink Moon</button> </div> <div class="col"> <button class="col btn btn-cool-blues">Cool Blues</button> </div> <div class="col"> <button class="col btn btn-dark-blue">Dark Blue</button> </div> </div> <div class="row mt-3"> <div class="col"> <button class="col btn btn-green-moon">Green Moon</button> </div> <div class="col"> <button class="col btn btn-orange-moon">Orange Moon</button> </div> <div class="col"> <button class="col btn btn-dark-moon">Dark Moon</button> </div> <div class="col"> <button class="col btn btn-light-moon">Light Moon</button> </div> <div class="col"> <button class="col btn btn-funky-moon">Funky Moon</button> </div> </div> <hr class="my-5" /> <h4>Rounded Buttons</h4> <div class="row"> <div class="col"> <button class="col btn btn-purple-moon btn-rounded">Purple Moon</button> </div> <div class="col"> <button class="col btn btn-ultra-voilet btn-rounded">Ultra Voilet</button> </div> <div class="col"> <button class="col btn btn-pink-moon btn-rounded">Pink Moon</button> </div> <div class="col"> <button class="col btn btn-cool-blues btn-rounded">Cool Blues</button> </div> <div class="col"> <button class="col btn btn-dark-blue btn-rounded">Dark Blue</button> </div> </div> <div class="row mt-3"> <div class="col"> <button class="col btn btn-green-moon btn-rounded">Green Moon</button> </div> <div class="col"> <button class="col btn btn-orange-moon btn-rounded">Orange Moon</button> </div> <div class="col"> <button class="col btn btn-dark-moon btn-rounded">Dark Moon</button> </div> <div class="col"> <button class="col btn btn-light-moon btn-rounded">Light Moon</button> </div> <div class="col"> <button class="col btn btn-funky-moon btn-rounded">Funky Moon</button> </div> </div> <hr class="my-5" /> <h4>Fab Buttons</h4> <div class="row"> <div class="col"> <button class="btn btn-purple-moon btn-fab">1</button> </div> <div class="col"> <button class="btn btn-ultra-voilet btn-fab">2</button> </div> <div class="col"> <button class="btn btn-pink-moon btn-fab">3</button> </div> <div class="col"> <button class="btn btn-cool-blues btn-fab">4</button> </div> <div class="col"> <button class="btn btn-dark-blue btn-fab">5</button> </div> </div> <div class="row mt-3"> <div class="col"> <button class="btn btn-green-moon btn-fab">6</button> </div> <div class="col"> <button class="btn btn-orange-moon btn-fab">7</button> </div> <div class="col"> <button class="btn btn-dark-moon btn-fab">8</button> </div> <div class="col"> <button class="btn btn-light-moon btn-fab">9</button> </div> <div class="col"> <button class="btn btn-funky-moon btn-fab">10</button> </div> </div> </div>
body { background: #141E30; /* fallback for old browsers */ background: -webkit-linear-gradient(to right, #243B55, #141E30); /* Chrome 10-25, Safari 5.1-6 */ background: linear-gradient(to right, #243B55, #141E30); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */ color: #fff; } .btn-purple-moon { background: #4e54c8; /* fallback for old browsers */ background: -webkit-linear-gradient(to right, #8f94fb, #4e54c8); /* Chrome 10-25, Safari 5.1-6 */ background: linear-gradient(to right, #8f94fb, #4e54c8); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */ color: #fff; border: 3px solid #eee; } .btn-ultra-voilet { background: #654ea3; /* fallback for old browsers */ background: -webkit-linear-gradient(to right, #eaafc8, #654ea3); /* Chrome 10-25, Safari 5.1-6 */ background: linear-gradient(to right, #eaafc8, #654ea3); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */ color: #fff; border: 3px solid #eee; } .btn-pink-moon { background: #ec008c; /* fallback for old browsers */ background: -webkit-linear-gradient(to right, #fc6767, #ec008c); /* Chrome 10-25, Safari 5.1-6 */ background: linear-gradient(to right, #fc6767, #ec008c); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */ color: #fff; border: 3px solid #eee; } .btn-cool-blues { background: #2193b0; /* fallback for old browsers */ background: -webkit-linear-gradient(to right, #6dd5ed, #2193b0); /* Chrome 10-25, Safari 5.1-6 */ background: linear-gradient(to right, #6dd5ed, #2193b0); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */ color: #fff; border: 3px solid #eee; } .btn-dark-blue { background: #7474BF; /* fallback for old browsers */ background: -webkit-linear-gradient(to right, #348AC7, #7474BF); /* Chrome 10-25, Safari 5.1-6 */ background: linear-gradient(to right, #348AC7, #7474BF); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */ color: #fff; border: 3px solid #eee; } .btn-green-moon { background: #56ab2f; /* fallback for old browsers */ background: -webkit-linear-gradient(to right, #a8e063, #56ab2f); /* Chrome 10-25, Safari 5.1-6 */ background: linear-gradient(to right, #a8e063, #56ab2f); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */ color: #fff; border: 3px solid #eee; } .btn-orange-moon { background: #fc4a1a; /* fallback for old browsers */ background: -webkit-linear-gradient(to right, #f7b733, #fc4a1a); /* Chrome 10-25, Safari 5.1-6 */ background: linear-gradient(to right, #f7b733, #fc4a1a); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */ color: #fff; border: 3px solid #eee; } .btn-dark-moon { background: #141E30; /* fallback for old browsers */ background: -webkit-linear-gradient(to right, #243B55, #141E30); /* Chrome 10-25, Safari 5.1-6 */ background: linear-gradient(to right, #243B55, #141E30); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */ color: #fff; border: 3px solid #eee; } .btn-light-moon { background: #FFEFBA; /* fallback for old browsers */ background: -webkit-linear-gradient(to right, #FFFFFF, #FFEFBA); /* Chrome 10-25, Safari 5.1-6 */ background: linear-gradient(to right, #FFFFFF, #FFEFBA); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */ color: #000; border: 3px solid #eee; } .btn-funky-moon { background: #A770EF; /* fallback for old browsers */ background: -webkit-linear-gradient(145deg, #FDB99B, #CF8BF3, #A770EF); /* Chrome 10-25, Safari 5.1-6 */ background: linear-gradient(145deg, #FDB99B, #CF8BF3, #A770EF); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */ color: #fff; border: 3px solid #eee; } .btn-rounded { border-radius: 35px; } .btn-fab { height: 50px; width: 53px; border-radius: 50%; } hr { border-top: 1px solid #9E9E9E; }

Related: See More


Questions / Comments:

Thank you very much for sharing your talent. You have done a beautiful job. Kind regards, Dixie, New Zealand

Dixie () - 3 years ago - Reply 0


Thank you very much for sharing your talent.

You have done a beautiful job.

Kind regards

Dixie

New Zealand

Dixie () - 3 years ago - Reply 0