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
"louie"
Bootstrap 3.2.0 Snippet by
clyftjhyn21
3.2.0
Preview
HTML
CSS
View Full Screen
Fork
Fork this
1.4K
 
0 Fav
Post to Facebook
Tweet this
<link href="//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.2.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>Navbar with Logo - Bootstrap 2.3.2</h2> <p>Logo must be 150x50</p> <p>If you want to use a biggest logo you must change the values to:</p> <ul> <li><code>.navbar-inner{ ... }</code> - Set min-height as Your image height value + 10px</li> <li><code>.navbar .nav > li > a {...}</code> - Check yourself</li> <li><code>.navbar .btn-navbar{...}</code> - Check the margin top to center verticaly</li> </ul> </div> <div class="navbar"> <div class=".navbar-inner"> <a class="brand" href="#"> <!-- UNCOMMENT THE CSS VALUES TO TEST OTHER DIMENTIONS --> <!-- <img src="http://placehold.it/150x80&text=Logo" alt=""> --> <img src="http://placehold.it/150x50&text=Logo" alt="tyr lang"> </a> <a class=" btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </a> <div class="nav-collapse collapse"> <ul class="nav"> <li class="active"><a href="#">Home</a></li> <li><a href="#">Link</a></li> <li><a href="#">Link</a></li> <ul class="nav"> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> Dropdown <b class="caret"></b> </a> <ul class="dropdown-menu"> <li><a href="#">Link</a></li> <li><a href="#">Link</a></li> <li><a href="#">Link</a></li> <li><a href="#">Link</a></li> </ul> </li> </ul> </ul> </div> </div> </div> </div>
.navbar-inner{ /*height: 90px*/ min-height: 60px } .navbar .brand{ padding: 0 10px; } .navbar .nav > li > a { padding: 20px 15px; /*padding: 35px 15px;*/ } .navbar .btn-navbar { /*margin-right: 0px;*/ margin-top:25px; } .brand img{ margin-top: 5px } @media (max-width:768px) { .brand img{ margin-bottom: 5px } .navbar .btn-navbar{ /*margin-right: -15px;*/ } .navbar .nav > li > a { padding: 10px 15px; } }
Related:
See More
Template
Material Dashboard Pro React
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76