Toggle navigation
Bootsnipp
Bootstrap
For
CSS Frameworks
Bootstrap
Foundation
Semantic UI
Materialize
Pure
Bulma
References
CSS Reference
Tools
Community
Page Builder
Form Builder
Button Builder
Icon Search
Dan's Tools
Diff / Merge
Color Picker
Keyword Tool
Web Fonts
.htaccess Generator
Favicon Generator
Site Speed Test
Snippets
Featured
Tags
By Bootstrap Version
4.1.1
4.0.0
3.3.0
3.2.0
3.1.0
3.0.3
3.0.1
3.0.0
2.3.2
Register
Login
"gurukul-school"
Bootstrap 3.3.0 Snippet by
raiverma
3.3.0
Preview
HTML
CSS
JS
View Full Screen
Fork
Fork this
3.6K
 
0 Fav
Post to Facebook
Tweet this
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.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 ----------> <!-- Camera image by: https://www.iconfinder.com/jackietran --> <link href="http://fontawesome.io/assets/font-awesome/css/font-awesome.css" rel="stylesheet"> <link href="http://l-lin.github.io/font-awesome-animation/dist/font-awesome-animation.min.css" rel="stylesheet"> <!-- Fixed navbar --> <div class="container-fluid"> <div id="guru-row" class="row guru-topbar"> <div class="col-md-3"> <div class="col-md-2" style="padding-top:12px;"> <i class="fa fa-map-marker fa-2x" aria-hidden="true"></i> </div> <div class="col-md-10"> <h5>Shri Jiwan Nagar Road, Rania<br/>Sirsa, Haryana - 125076</h5> </div> </div> <div class="col-md-3"> <div class="col-md-2" style="padding-top:12px;"> <i class="fa fa-clock-o fa-2x" aria-hidden="true"></i> </div> <div class="col-md-10"> <h5>9am - 3pm <br/>Monday - Saturday</h5> </div> </div> <div id="logo" class="col-md-1 col-sm-1"> <img id="logo-top" class="img-responsive" src="http://thegurukulschoolrania.com/images/logo.png"></img> </div> <div class="col-md-3"> <div class="col-md-2" style="padding-top:12px;"> <i class="fa fa-address-card fa-2x" aria-hidden="true"></i> </div> <div class="col-md-10"> <h5>thegurukulrania@gmail.com<br/>01698 - 250000</h5> </div> </div> <div class="col-md-2"> <div class="col-md-2" style="padding-top:12px;"> <i class="fa fa-calendar fa-2x" aria-hidden="true"></i> </div> <div class="col-md-10"> <h5>Wed, Nov 30, 2016<br/>01:40pm</h5> </div> </div> </div> <nav id="mynav" class="navbar normal guru-navbar" role="navigation"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav navbar-left"> <li class="active text-center"><a href="#"><i class="fa fa-home fa-lg" aria-hidden="true"></i><br/>Home</a></li> <li class="text-center"><a href="#"><i class="fa fa-building-o fa-lg" aria-hidden="true"></i><br/>Infrastructure</a></li> <li class="text-center"><a href="#"><i class="fa fa-university fa-lg" aria-hidden="true"></i><br/>Facilities</a></li> <li class="text-center"><a href="#"><i class="fa fa-bar-chart fa-lg" aria-hidden="true"></i><br/>Activities</a></li> <li id="gallery" class="jugad text-center"><a href="#"><i class="fa fa-picture-o fa-lg" aria-hidden="true"></i><br/>Gallery</a></li> <li class="text-center"><a href="#"><i class="fa fa-ioxhost fa-lg" aria-hidden="true"></i><br/>School Rules</a></li> <li class="text-center"><a href="#"><i class="fa fa-address-card fa-lg" aria-hidden="true"></i><br/>Contact Us</a></li> </li> </ul> </div> <!--/.nav-collapse --> </div> <!--/.contatiner --> </nav> <!-- Main jumbotron for a primary marketing message or call to action --> <div class="jumbotron"> <div class="container"> <br> <h2>On-scroll<small> header effects</small></h2> <p> <p>Best viewed <a href="http://bootsnipp.com/iframe/z1Dx8" target="_blank">full screen</a></p> <p>??? Mobile dropdown now working... This is a template for a simple marketing or informational website. It includes a large callout called a jumbotron and three supporting pieces of content. Use it as a starting point to create something more unique.</p> <p><a class="btn btn-primary btn-lg" href="#" role="button">Learn more »</a> </p> </div> </div> <div class="container"> <!-- Example row of columns --> <div class="row"> <div class="col-md-4"> <h2>Heading</h2> <p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p> <p><a class="btn btn-default" href="#" role="button">View details »</a> </p> </div> <div class="col-md-4"> <h2>Heading</h2> <img src="http://i.imgur.com/DLScdiR.jpg" class="img-responsive" alt="bird" /> <br> <p><a class="btn btn-default" href="#" role="button">View details »</a> </p> </div> <div class="col-md-4"> <h2>Heading</h2> <p>Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper.</p> <p><a class="btn btn-default" href="#" role="button">View details »</a> </p> </div> </div> <!-- /row --> <div class="container"> <!-- Example row of columns --> <div class="row"> <div class="col-md-4"> <h2>Heading</h2> <p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p> <p><a class="btn btn-default" href="#" role="button">View details »</a> </p> </div> <div class="col-md-4"> <h2>Heading</h2> <img src="http://i.imgur.com/DLScdiR.jpg" class="img-responsive" alt="bird" /> <br> <p><a class="btn btn-default" href="#" role="button">View details »</a> </p> </div> <div class="col-md-4"> <h2>Heading</h2> <p>Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper.</p> <p><a class="btn btn-default" href="#" role="button">View details »</a> </p> </div> </div> <!-- /row --> <hr> <footer> <p>© Company 2014</p> </footer> </div> <!-- /container --> </div>
/* Ref: Thanks to: http://span-tag.com/bootstrap-navbar/ */ body { min-height: 2000px; } .guru-topbar { background-color:#dadada; color:#e45f36; } .guru-topbar i { color:#00b4ff; } .guru-navbar { background-color:#00b4ff; color:#fff; } .guru-navbar a { color:#fff; } .guru-navbar a:hover { color:#072643; } .guru-navbar a:focus{ color: #072643 !important; } .navbar-nav > li{ padding-left:25px; padding-right:25px; } .navbar-collapse { background-color:#00b4ff; color:#fff; height: 50px !important; } .navbar-collapse.collapse { height: 50px !important; } .icon-bar { background-color:#fff; } #logo-top { position: absolute; z-index: 10; } .jugad { margin-left:110px; } @media only screen and (max-device-width: 480px) { #guru-row { text-align: center; } #logo-top { position: relative; z-index: 0; width:100px; margin:auto; } .navbar-collapse.collapse { height: auto !important; } .jugad { margin-left:0; } #mynav { height: 50px; } } /* added to .nav */ .normal { height: 80px; /* this causes drop down to lose color ??? */ -webkit-transition: 0.5s; -moz-transition: 0.5s; -ms-transition: 0.5s; transition: 0.5s; } .normal .navbar-left { padding: 5px; -webkit-transition: 0.5s; -moz-transition: 0.5s; -ms-transition: 0.5s; transition: 0.5s; } .navbar-brand { padding: 0px !important; } .navbar-brand img { padding: 5px; max-height: 90px; -webkit-transition: 0.5s; -moz-transition: 0.5s; -ms-transition: 0.5s; transition: 0.5s; } .shrink { height: 75px; -webkit-transition: 0.5s; -moz-transition: 0.5s; -ms-transition: 0.5s; transition: 0.5s; } .shrink .navbar-right { padding-top: 0px; -webkit-transition: 0.5s; -moz-transition: 0.5s; -ms-transition: 0.5s; transition: 0.5s; } .shrink .navbar-brand img { max-height: 50px; -webkit-transition: 0.5s; -moz-transition: 0.5s; -ms-transition: 0.5s; transition: 0.5s; }
$(window).scroll(function() { if ($(document).scrollTop() > 100) { $('.navbar').addClass('navbar-fixed-top shrink'); $('#gallery').removeClass('jugad'); } else { $('.navbar').removeClass('navbar-fixed-top shrink'); } $('#gallery').addClass('jugad'); });
Related:
See More
Free Template
Now UI Dashboard
36.5K
35
School Form
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76