Bootstrap snippet and html example. Bootstrap colored Nav with nice alerts

This html snippet was created to help web designers, web developers, front-end and back-end developer save time. Use it for free in your project and build your app faster, You can also download the HTML, CSS, and JS code.
Tags: alert,alerts

HTML code

This is the html code used to create this bootstrap snippet, You can copy and paste the following html code inside a page with bootstrap 3.1.0 included, to get the result that you can see in the preview selection

<div class="container bootstrap snippets bootdey">

<ul class="nav nav-pills nav-with-alerts">
    <li class="col-lg-3">
		<a href="#info" data-toggle="tab">
			<div class="alert alert-info">
				Informations
				<span class="label label-info pull-right">12</span>
			</div>
		</a>
	</li>
	<li class="col-lg-3">
		<a href="#success" data-toggle="tab">
			<div class="alert alert-success">
				Successes
				<span class="label label-success pull-right">34</span>
			</div>
		</a>
	</li>
	<li class="col-lg-3">
		<a href="#warning" data-toggle="tab">
			<div class="alert alert-warning">
				Warnings
				<span class="label label-warning pull-right">56</span>
			</div>
		</a>
	</li>
	<li class="col-lg-3">
		<a href="#error" data-toggle="tab">
			<div class="alert alert-danger">
				Errors
				<span class="label label-danger pull-right">78</span>
			</div>
		</a>
	</li>
</ul>

<div class="tab-content">
	<div class="tab-pane fade" id="info">
		<div class="alert alert-info">
			<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut vehicula nec arcu at faucibus. Duis justo urna, adipiscing quis turpis non, dictum hendrerit ipsum. Fusce non viverra erat. Curabitur sit amet ante dui. Donec congue molestie mi a varius. Suspendisse potenti. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Aliquam ornare quam eu ultricies bibendum. Cras ante augue, pharetra eget ultricies eu, aliquam eu velit. Phasellus mattis vitae justo pretium tempus. Duis vitae felis et sem tristique suscipit. Lorem ipsum dolor sit amet, consectetur adipiscing elit</p>
		</div>
	</div>
	<div class="tab-pane fade" id="success">
		<div class="alert alert-success">
			<p>Nulla magna sapien, ullamcorper nec dolor id, gravida venenatis velit. Aliquam et malesuada metus. Sed vitae turpis pharetra nunc dignissim ultricies et sit amet lacus. Cras gravida felis mauris, a pellentesque augue interdum ac. In varius facilisis ante, nec viverra libero commodo ac. Maecenas tempus, elit nec aliquet fermentum, tellus odio auctor sapien, eu scelerisque purus turpis quis eros. Morbi id ante diam. Phasellus aliquet purus id odio mollis dignissim. Proin sagittis, risus a ullamcorper dapibus, velit enim adipiscing nulla, vel facilisis ipsum dui quis diam. Aliquam ullamcorper accumsan felis id consequat. Nullam vehicula ut mi eget porta.</p>
		</div>
	</div>
	<div class="tab-pane fade" id="warning">
		<div class="alert alert-warning">
			<p>Curabitur varius euismod nisi ac lacinia. Curabitur nec urna adipiscing, fermentum augue id, commodo nisl. Quisque ut convallis est. Suspendisse tellus nisi, tempus eu nulla quis, laoreet imperdiet ante. Vivamus in lorem purus. Integer luctus elit et metus condimentum porta. Suspendisse viverra sit amet mauris vel elementum. Fusce lorem arcu, accumsan non odio vel, vestibulum pharetra odio. Sed non mollis mi, ac lacinia nunc. Cras eleifend massa velit, tincidunt tempor arcu sodales at. Nam sit amet erat enim. Mauris placerat suscipit odio, vitae gravida purus bibendum sed. Suspendisse a nunc quis libero rutrum mattis at ac metus. In ac risus eleifend, vestibulum mi eget, dapibus nulla. Nunc diam eros, convallis a sagittis non, rhoncus non nunc. Maecenas in eleifend quam.</p>
		</div>
	</div>
	<div class="tab-pane fade" id="error">
		<div class="alert alert-danger">
			<p>Sed quis dapibus nunc. Proin vestibulum libero elit, gravida tincidunt mauris tincidunt blandit. Donec non ultrices neque, nec sollicitudin elit. Curabitur volutpat nulla vel mauris vestibulum, tempor ultrices quam ullamcorper. Fusce ultricies elementum pretium. In vel consectetur leo, nec rutrum velit. Fusce fermentum pulvinar nibh. Ut posuere ante sed luctus egestas. Aenean ut suscipit tortor.</p>
		</div>
	</div>
</div>

</div>








        

CSS code

This is the css code used to create this bootstrap snippet, You can copy and paste the following css code inside a page with bootstrap 3.1.0 included, to get the result that you can see in the preview selection

                
body{margin-top:20px;}   
.nav.nav-with-alerts > li { margin: 0; padding: 0 10px 0 0; }
.nav.nav-with-alerts > li > a[data-toggle="tab"] { padding: 0; }
.nav.nav-with-alerts > li > a[data-toggle="tab"] > .alert { margin: 0; padding: 10px 15px; }

Similar snippets

Bootstrap example and template. notifications panel

notifications panel

Bootstrap example and template. Material design for Bootstrap 3 bootdey

Material design for Bootstrap 3 bootdey

Bootstrap example and template. Rounded and Shadowed Alerts

Rounded and Shadowed Alerts

Bootstrap example and template. unify colorful notifications

unify colorful notifications

Bootstrap example and template. chat app

chat app

Bootstrap example and template. Messages Board

Messages Board

Bootstrap example and template. owl carousel courses

owl carousel courses

Bootstrap example and template. profile with team section

profile with team section

Bootstrap example and template. Bootstrap colored Nav with nice alerts

About this bootstrap example/template

We hope you will enjoy this awesome snippet and stay tuned for the latest updates, bootdey snippets are already used in thousands of blogs, websites and projects. We believe it will save your precious time and gives trendy look to your next web project.

We always try to offer the best beautiful and responsive source of Bootstrap code examples and components.

This code example currectly have 7.4K views, Using this bootstrap snippet you have the following benefits:

Bootstrap 3.1.0

<link rel='stylesheet' href='https://netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css'>

<script src='https://netdna.bootstrapcdn.com/bootstrap/3.1.0/js/bootstrap.min.js'></script>

This code example is based on bootstrap 3.1.0 and the grid system of this framework

Responsive

Based on bootstrap framework makes all the layouts perfectly responsive for all devices

Crossbrowser compatibility

Tested on all major browsers, it works smoothly on all of them

semantic html 5

Built on html / css3 the code quality is really amazing

Simple Integration

This code example can be simply integrated on existing sites and new ones too, all you need to do is copy the code and start working