Note that there are some explanatory texts on larger screens.

plurals
  1. POBootstrap fluid-layout and full height div
    primarykey
    data
    text
    <p>I'm currently working with the Twitter's Bootstrap and trying to get something a bit specific but can't get it working...</p> <p>I would like a fluid layout with navbar, sidebar, content and footer. Also I would like a div inside the content with a full height.</p> <p>HTML</p> <pre><code>&lt;div class="navbar navbar-inverse navbar-fixed-top"&gt; &lt;div class="navbar-inner"&gt; &lt;div class="container-fluid"&gt; &lt;a class="brand" href="#"&gt;Navbar&lt;/a&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="container-fluid"&gt; &lt;div class="row-fluid"&gt; &lt;div class="span3"&gt; &lt;div class="well sidebar-nav"&gt; &lt;ul class="nav nav-list"&gt; &lt;li class="nav-header"&gt;Sidebar&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt;&lt;!--/.well --&gt; &lt;/div&gt;&lt;!--/span--&gt; &lt;div class="span9"&gt; &lt;div class="hero-unit"&gt; &lt;h1&gt;Hero Unit&lt;/h1&gt; &lt;/div&gt; &lt;div class="row-fluid"&gt; &lt;div class="span12"&gt; &lt;div id="fullHeight" style="background-color: red"&gt; &lt;p&gt;Full height here&lt;/p&gt; &lt;/div&gt; &lt;/div&gt;&lt;!--/span--&gt; &lt;/div&gt;&lt;!--/row--&gt; &lt;/div&gt;&lt;!--/span--&gt; &lt;/div&gt;&lt;!--/row--&gt; &lt;hr&gt; &lt;footer&gt; &lt;p&gt;&amp;copy; Company 2013&lt;/p&gt; &lt;/footer&gt; &lt;/div&gt;&lt;!--/.fluid-container--&gt; </code></pre> <p>CSS</p> <pre><code>body { padding-top: 60px; padding-bottom: 40px; } .sidebar-nav { padding: 9px 0; } @media (max-width: 980px) { /* Enable use of floated navbar text */ .navbar-text.pull-right { float: none; padding-left: 5px; padding-right: 5px; } } </code></pre> <p>Here is jsfiddle to show you what i have/want : <a href="http://jsfiddle.net/2nuvP/" rel="nofollow">http://jsfiddle.net/2nuvP/</a></p> <p>Can someone help me to get this working ?</p> <p>Tips : has I'm not sure this is possible with CSS only, I accept JS/jQuery solutions ;) Also if your solution needs some HTML modifications this is not necessary a big deal...</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload