Jack Frost Jack Frost - 7 months ago 15
HTML Question

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 ... "
.

Answer

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>