Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You should look at foundations docs for <a href="http://foundation.zurb.com/docs/components/topbar.html" rel="nofollow">topbar.js</a> and <a href="http://foundation.zurb.com/docs/components/forms.html" rel="nofollow">form inputs</a>, they're easy to follow and have given examples which do almost exactly what you are trying to do.</p> <p>You shouldn't really need to write any css, that's what foundations is for.</p> <p>I'd suggest something like this:</p> <pre><code>&lt;nav class="top-bar" data-topbar=""&gt; &lt;!-- Title --&gt; &lt;ul class="title-area"&gt; &lt;!-- Mobile Menu Toggle --&gt; &lt;li class="toggle-topbar menu-icon"&gt;&lt;a href="#"&gt;&lt;span&gt;Menu&lt;/span&gt;&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;!-- Top Bar Section --&gt; &lt;div class="row"&gt; &lt;div class="large-12 columns"&gt; &lt;div class="row collapse"&gt; &lt;div class="small-10 columns"&gt; &lt;input type="text" placeholder="Search"&gt; &lt;/div&gt; &lt;div class="small-2 columns"&gt; &lt;a href="#" class="button postfix"&gt;Go&lt;/a&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/nav&gt; </code></pre> <p>Make sure you also remember to include a reference to <code>topbar.js</code> after <code>foundation.min.js</code></p> <p><strong>Edit: Added an alternate approach</strong></p> <pre><code>&lt;nav class="top-bar" data-topbar=""&gt; &lt;ul class="title-area" style="width: 100%"&gt; &lt;li class="name has-form"&gt; &lt;div class="large-12 medium-12 small-11 columns"&gt; &lt;input type="text" placeholder="Find Stuff"&gt; &lt;/div&gt; &lt;/li&gt; &lt;li class="toggle-topbar menu-icon"&gt;&lt;a href=""&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/nav&gt; </code></pre>
 

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