Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy won't my Bootstrap CSS divs stack nicely?
    primarykey
    data
    text
    <p>I'm having trouble with Bootstrap which some people here seem to know about. I have set up the following two divs according to the basic "row" class grid conventions, yet they are not stacking as expected when I reduce the size of the browser screen. They just stay fixed.</p> <p>Update:</p> <p>Bootstrap became responsive when I linked to the bootstrap-responsive.css file, as suggested below.</p> <p>However, the boxes stretch beyond the maximum grid size I had intended and set (i.e. the default of 940px which came in the original installation and I re-affirmed by compiling it all again with LESS). Moreover, it actually stretched beyond the far-right extent of the browser window. Screenshot from Chrome (17.0.963.56) (more markup visible in developer tools in screenshot):</p> <p><a href="http://static.inky.ws/image/1457/image.jpg" rel="nofollow">http://static.inky.ws/image/1457/image.jpg</a></p> <p>This happens with and without the inclusion of:</p> <p></p> <p>Maybe I am using bootstrap in the wrong way, but I want it to behave responsively on selected divs (classed as "row", "spanX", etc.) but to stop at the max grid width of my choosing, and at least to stop at the far extent of the window!</p> <p>Thanks again for your time, Matt</p> <p>HTML:</p> <pre><code>&lt;div class="row-fluid"&gt;&lt;!-- Intro begin --&gt; &lt;div class="span6"&gt; &lt;p style="font-size: 18px;"&gt; &lt;strong&gt;&lt;span style="font-size: 20px;"&gt;Mingo makes it easy to share food with other people in your area.&lt;/span&gt;&lt;/strong&gt; &lt;/p&gt; &lt;/div&gt; &lt;div class="span6"&gt; &lt;!--&lt;img src="{{STATIC_URL}}images/pics/how_it_works.png" width="350px" style="margin-right: 20px;" /&gt;--&gt; &lt;div style="background-color: #E7F5DF; height: 250px; padding: 8px; border-radius: 8px;"&gt; &lt;ul class="nav nav-pills" style="float: right;"&gt; &lt;li class="active"&gt;&lt;a href="#"&gt;How it works&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Save time, save money&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;div style="width: 99.5%; height: 87.5%; background-color: #c6e3b6; margin: 9.5% 0 0; border-radius: 8px; moz-border-radius: 8px;"&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt;&lt;!-- Intro end --&gt; </code></pre>
    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.
    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