Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Hard to tell without testing, but you could try adding a <code>white-space: nowrap</code> style to the container.</p> <pre><code>&lt;div class="container-fluid nowrap"&gt; </code></pre> <p>CSS:</p> <pre><code>.nowrap { white-space: nowrap; } </code></pre> <p><br /><br /> <em>EDIT</em>:<br> Did some testing, I believe this emulates the behavior you're looking for:</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="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"&gt; &lt;span class="icon-bar"&gt;&lt;/span&gt; &lt;span class="icon-bar"&gt;&lt;/span&gt; &lt;span class="icon-bar"&gt;&lt;/span&gt; &lt;/a&gt; &lt;a class="brand" href="/"&gt;site name&lt;/a&gt; &lt;div class="btn-group pull-right"&gt; &lt;button class="btn btn-primary"&gt;Log In&lt;/button&gt; &lt;/div&gt; &lt;div class="pull-left"&gt; &lt;form action="#" class="navbar-search pull-right"&gt; &lt;input name="search" class = "search-query" /&gt; &lt;/form&gt; &lt;div class="nav-collapse pull-right"&gt; &lt;ul class="nav"&gt; &lt;li&gt;&lt;a href="#"&gt;Home&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Other&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>CSS:</p> <pre><code>@media (max-width: 979px) { .navbar .btn-navbar { float: left !important; } .navbar-search { float: left; } } </code></pre> <p><br /> Basically, just float the links and search bar to the <b>right</b> and wrap them in a div that floats <b>left</b> (to mimic the current behavior on screen widths > 979px).<br> Then, float the links and search bar to the <b>left</b> when the window is shrunk to avoid the linebreak.<br> <br /> It will still break on very small screen widths, simply because the search bar is too wide to fit with the rest of the content. You can prevent this by overriding its width accordingly.<br> For example:</p> <pre><code>.search-query { width: 150px !important } </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.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      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