- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- 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-form class
To create navbar in CSS, use the navbar-form 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 style = "background: #F5CBA7;"> <nav class = "navbar navbar-default" role = "navigation"> <div class = "navbar-header"> <a class = "navbar-brand" href = "#">My Website</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> </form> </div> </nav> </body> </html>
- Related Articles
- Usage of Bootstrap navbar-btn class
- Usage of Bootstrap navbar-text class
- Usage of Bootstrap navbar-fixed-top class
- Usage of Bootstrap navbar-fixed-bottom class
- Bootstrap navbar-default class
- Bootstrap navbar-inverse class
- Bootstrap navbar-static-top class
- Usage of Bootstrap label class
- Usage of Bootstrap class panel-warning
- Usage of Bootstrap class panel-success
- Usage of Bootstrap class panel-info
- Usage of Bootstrap .btn-group-* class
- Usage of btn-xs Bootstrap class
- Usage of btn-sm Bootstrap class
- Usage of btn-large Bootstrap class

Advertisements