"Cool Alerts Alternate Color"
Bootstrap 3.0.0 Snippet by cyberwani

<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> </div>
.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;}

Related: See More


Questions / Comments: