Twitter Bootstrap - full width navbar

StackOverflowNewbie picture StackOverflowNewbie · Oct 26, 2012 · Viewed 122.1k times · Source

Following the example of TB, I have a navbar that is marked up as follows:

<div class="container">
    <div class="navbar">
        <div class="navbar-inner">
                   <!-- nav bar items here -->
        </div>
    </div>
</div>

I'd like this to span the full width of the screen and not have any rounded corners -- similar to static top styling of the navbar.

I can't seem to find how to do this in TB. If there isn't a way, what CSS would I need to override TB and not break responsiveness?

Answer

Arnaud Bouchot picture Arnaud Bouchot · Feb 20, 2015

Just change the class container to container-fullwidth like this :

<div class="container-fullwidth">