"Cool Alerts Alternate Color"
Bootstrap 3.0.0 Snippet by BhaumikPatel

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="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/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">
<div class="row">
<h2>
Alerts</h2>
<div class="col-md-12">
<div class="alert alert-purple alert-dismissable">
<span class="glyphicon glyphicon-certificate"></span>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">
×</button><strong>Well done!</strong> Custom <a href="http://www.jquery2dotnet.com"
target="_blank">alert</a> message box with cool color</div>
<div class="alert alert-info-alt alert-dismissable">
<span class="glyphicon glyphicon-certificate"></span>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">
×</button><strong>Well done!</strong> Custom <a href="http://www.jquery2dotnet.com"
target="_blank">alert</a> message box with cool color</div>
<div class="alert alert-danger-alt alert-dismissable">
<span class="glyphicon glyphicon-certificate"></span>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">
×</button><strong>Well done!</strong> Custom <a href="http://www.jquery2dotnet.com"
target="_blank">alert</a> message box with cool color</div>
<div class="alert alert-warning-alt alert-dismissable">
<span class="glyphicon glyphicon-certificate"></span>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">
×</button><strong>Well done!</strong> Custom <a href="http://www.jquery2dotnet.com"
target="_blank">alert</a> message box with cool color</div>
<div class="alert alert-success-alt alert-dismissable">
<span class="glyphicon glyphicon-certificate"></span>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">
×</button><strong>Well done!</strong> Custom <a href="http://www.jquery2dotnet.com"
target="_blank">alert</a> message box with cool color</div>
</div>
</div>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
.alert-purple { border-color: #694D9F;background: #694D9F;color: #fff; }
.alert-info-alt { border-color: #B4E1E4;background: #81c7e1;color: #fff; }
.alert-danger-alt { border-color: #B63E5A;background: #E26868;color: #fff; }
.alert-warning-alt { border-color: #F3F3EB;background: #E9CEAC;color: #fff; }
.alert-success-alt { border-color: #19B99A;background: #20A286;color: #fff; }
.glyphicon { margin-right:10px; }
.alert a {color: gold;}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: