css - Bootstrap 3 Full-width Jumbotron outside container after <header> -


starting out bootstrap 3 , getting used it.

i've copied navbar bootstrap 3 docs becuase has exact functionality want , why invent wheel hey.

i want put jumbotron after header want full width, according docs don't enclose in container div.

the problem when omit container div slides under header want start header ends. if put inside container sits nicely under it.

can show me i'm going wrong , how fix without making hack div pushes down. many thanks.

i want keep container in header tag becuase don't want these elements stretching sides.

<!-- docs master nav --> <header class="navbar navbar-inverse navbar-fixed-top bs-docs-nav" role="banner">   <div class="container">     <div class="navbar-header">       <button class="navbar-toggle" type="button" data-toggle="collapse" data-target=".bs-navbar-collapse">         <span class="sr-only">toggle navigation</span>         <span class="icon-bar"></span>         <span class="icon-bar"></span>         <span class="icon-bar"></span>       </button>       <a href="../" class="navbar-brand"><img src="imagenes/logo.png" /></a>     </div>     <nav class="collapse navbar-collapse bs-navbar-collapse" role="navigation">       <ul class="nav navbar-nav navbar-right pull-down">         <li class="">           <a href="#">menu</a>         </li>         <li class="">           <a href="#">galerĂ­a</a>         </li>         <li class="">           <a href="#">calendario</a>         </li>         <li class="">           <a href="#">bh musicos / talentos</a>         </li>         <li class="">           <a href="#">blog</a>         </li>         <li class="">           <a href="#">contacto</a>         </li>       </ul>     </nav>   </div> </header> <div class="jumbotron">   <h1>hello world</h1>   <p>testing 1 2 three</p> </div> 

if @ "fixed top" section on navbar docs, there's alert urging add padding body:

body padding required

the fixed navbar overlay other content, unless add padding top of <body>. try out own values or use our snippet below. tip: default, navbar 50px high.

body { padding-top: 70px; }

make sure include after core bootstrap css.


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -