
- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Usage of Bootstrap navbar-btn class
Add buttons using class .navbar-btn to <button> elements not residing in a <form> to vertically center them in the navbar. .navbar-btn can be used on <a> and <input> elements.
You can try to run the following code to implement the navbar-btn class
Example
<!DOCTYPE html> <html> <head> <title>Bootstrap Example</title> <link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet"> <script src = "/scripts/jquery.min.js"></script> <script src = "/bootstrap/js/bootstrap.min.js"></script> </head> <body> <nav class = "navbar navbar-default" role = "navigation" style="background: #85C1E9;"> <div class = "navbar-header"> <a class = "navbar-brand" href = "#">Search below:</a> </div> <div> <form class = "navbar-form navbar-left" role = "search"> <div class = "form-group"> <input type = "text" class = "form-control" placeholder = "Search"> </div> <button type = "submit" class = "btn btn-default">Submit Button</button> </form> <button type = "button" class = "btn btn-default navbar-btn">Navbar Button</button> </div> </nav> </body> </html>
- Related Questions & Answers
- Usage of Bootstrap navbar-form class
- Usage of Bootstrap navbar-text class
- Usage of btn-large Bootstrap class
- Usage of btn-sm Bootstrap class
- Usage of Bootstrap .btn-group-* class
- Usage of btn-xs Bootstrap class
- Usage of Bootstrap navbar-fixed-top class
- Usage of Bootstrap navbar-fixed-bottom class
- Bootstrap .btn class
- Bootstrap navbar-inverse class
- Bootstrap navbar-default class
- Bootstrap .btn-danger class
- Bootstrap .btn-sm class
- Bootstrap btn-toolbar class
- Bootstrap .btn-success class
Advertisements