- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
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
Wrap Strings of Text in Bootstrap Navbar
To wrap strings of text in an element using the class .navbar-text.
Example
You can try to run the following code to set text in Bootstrap Navbar −
<!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"> <div class = "navbar-header"> <a class = "navbar-brand" href = "#">Demo</a> </div> <div> <p class = "navbar-text">Copyright © 2018</p> </div> </nav> </body> </html>
- Related Articles
- Usage of Bootstrap navbar-text class
- Create Inverted Navbar in Bootstrap
- Add buttons in Bootstrap Navbar
- Bootstrap navbar-default class
- Create Default Bootstrap Navbar
- Bootstrap navbar-inverse class
- Usage of Bootstrap navbar-form class
- Usage of Bootstrap navbar-btn class
- Bootstrap navbar-static-top class
- Usage of Bootstrap navbar-fixed-top class
- Usage of Bootstrap navbar-fixed-bottom class
- Wrap flex items in Bootstrap
- Add responsive features to Bootstrap navbar
- Change HTML navbar color in Twitter Bootstrap 2.0.4
- How to word-wrap text in Tkinter Text?

Advertisements