"Bootstrap Gradient Button"
Bootstrap 4.1.1 Snippet by saikrishna99666

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<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="//code.jquery.com/jquery-1.11.1.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>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: