Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Twitter Bootstrap: Text in navbar

According to the twitter bootstrap documentation, I should be able to "Wrap strings of text in a <p> tag for proper leading and color." When I do this, at any level under navbar it simply doesn't inherit any of the navbar classes. Wrapping the string in <a> tags renders it but it shouldn't be an anchor.

The string I'm trying to render is "Logged in as ... ".

like image 541
Jack Frost Avatar asked Mar 23 '12 18:03

Jack Frost


3 Answers

You have to include a class along with your p tag inside of your navbar, like so:

<p class="navbar-text">Logged in as</p> 
like image 116
Andres Ilich Avatar answered Nov 06 '22 22:11

Andres Ilich


This was fixed in issue 2799.

like image 21
muzzamo Avatar answered Nov 06 '22 22:11

muzzamo


I had to add <span class="navbar-text"> for the format to level with the anchor tags.

like image 2
Milo van Loon Avatar answered Nov 06 '22 22:11

Milo van Loon