Note that there are some explanatory texts on larger screens.

plurals
  1. POBootstrap form aligned, vertical, and horizontal
    primarykey
    data
    text
    <p>I am trying to make a pretty form that will work boostrap-responsive.css for mobile use. Before I used tables, and it worked fine without bootstrap-responsive, but now it becomes very ugly when scaled down.</p> <p><strong>What I'm trying to accomplish</strong>:</p> <ol> <li><p>Get headline/label for each input to be in top(horizontal).</p></li> <li><p>Aligned right side(so it will look pretty on a phone).</p></li> <li><p>Have glyphicons prepended - this is what it makes difficult, since with them I can't format it correctly</p></li> </ol> <p>If I am too unclear of what I want to accomplish, you can also take a look at my super hightech picture that describes the form: <a href="http://i.imgur.com/xcvL0hp.jpg" rel="nofollow">http://i.imgur.com/xcvL0hp.jpg</a></p> <p>My code half working code is:</p> <pre><code>&lt;form class="form-vertical" ....&gt; &lt;fieldset&gt; &lt;div class="row-fluid"&gt; &lt;div class="span8 input-prepend"&gt; &lt;label class="control-label" for="title"&gt;Title&lt;/label&gt; &lt;span class="add-on"&gt;&lt;i id="titleicon" class="icon-minus-sign"&gt;&lt;/i&gt;&lt;/span&gt; &lt;input type="text" name="title" id="title" /&gt; &lt;/div&gt; &lt;div&gt;&lt;/div&gt; &lt;div class="span2 input-prepend"&gt; &lt;label class="control-label" for="price"&gt;Price&lt;/label&gt; &lt;span class="add-on"&gt;&lt;i id="priceicon" class="icon-minus-sign"&gt;&lt;/i&gt;&lt;/span&gt; &lt;input type="text" id="price" name="price"/&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="controls"&gt; &lt;label class="control-label" for="description"&gt;Description&lt;/label&gt; &lt;div class="input-prepend"&gt; &lt;span class="add-on"&gt;&lt;i id="descriptionicon" class="icon-minus-sign"&gt;&lt;/i&gt;/span&gt; &lt;textarea name="description" rows="6" class="field span6" id="descriptionfield"&gt;&lt;/textarea&gt; &lt;/div&gt; &lt;/div&gt;¨ &lt;/fieldset&gt; &lt;/form&gt; </code></pre> <p>I am not sure I formatted it correctly for stackoverflow(this is my first question) so it is here too with syntax highlighting: <a href="http://pastebin.com/LzN1vbYi" rel="nofollow">http://pastebin.com/LzN1vbYi</a></p> <p>I know there are tons of answers to very similar question, but that prepended glyph makes none of the code work. I tried around 15 different approaches.</p>
    singulars
    1. This table or related slice is empty.
    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. 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