Bootstrap colored Nav with nice alerts

This bootstrap snippet called "Bootstrap colored Nav with nice alerts" was created to help web designers,
front-end developers and back-end developer save time. Use it in your project and build your app faster,
You can also download the HTML, CSS, and JS code
tags: colored,nav,alert

This is the HTML code for this bootstrap snippet

Copy, paste, change, customize and run the following HTML code to get a result like the one shown in the preview tab


<div class="container bootstrap snippet">

<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>








        

This is the CSS code for this bootstrap snippet

Copy, paste, change, customize and run the following CSS code to get a result Like the one shown in the preview


                
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; }
                                    

Information about this bootstrap snippet

Creator: Dey Dey

Bootstrap version: 3.1.0

Created: Apr 24th 2014, 12:39

Views: 3.5K

Rated 5/5 based on 2 reviews