Note that there are some explanatory texts on larger screens.

plurals
  1. POTwitter Bootstrap 3 - Horizontal Forms
    primarykey
    data
    text
    <p>I have the following code. However the form doesn't work as intended. It has the labels/inputs below one another rather than next to one another</p> <blockquote> <p>Email (Label)</p> <p>Email (Input)</p> <p>Password (Label)</p> <p>Password (Input)</p> </blockquote> <p>Rather than</p> <blockquote> <p>Email (Label) Email (Input)</p> <p>Password (Label) Password (Input)</p> </blockquote> <p>As per this example <a href="http://getbootstrap.com/css/#forms-horizontal" rel="nofollow">http://getbootstrap.com/css/#forms-horizontal</a></p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;TEMPLATE&lt;/title&gt; &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt; &lt;!-- Bootstrap --&gt; &lt;link href="css/bootstrap.min.css" rel="stylesheet" media="screen"&gt; &lt;link href="css/sticky-footer-navbar.css" rel="stylesheet"&gt; &lt;link href="css/custom.css" rel="stylesheet"&gt; &lt;!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --&gt; &lt;!--[if lt IE 9]&gt; &lt;script src="js/html5shiv.js"&gt;&lt;/script&gt; &lt;script src="js/respond.min.js"&gt;&lt;/script&gt; &lt;![endif]--&gt; &lt;/head&gt; &lt;body&gt; &lt;form class="form-horizontal" role="form"&gt; &lt;div class="form-group"&gt; &lt;label for="inputEmail1" class="col-lg-2 control-label"&gt;Email&lt;/label&gt; &lt;div class="col-lg-10"&gt; &lt;input type="email" class="form-control" id="inputEmail1" placeholder="Email"&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="form-group"&gt; &lt;label for="inputPassword1" class="col-lg-2 control-label"&gt;Password&lt;/label&gt; &lt;div class="col-lg-10"&gt; &lt;input type="password" class="form-control" id="inputPassword1" placeholder="Password"&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="form-group"&gt; &lt;div class="col-lg-offset-2 col-lg-10"&gt; &lt;div class="checkbox"&gt; &lt;label&gt; &lt;input type="checkbox"&gt; Remember me &lt;/label&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="form-group"&gt; &lt;div class="col-lg-offset-2 col-lg-10"&gt; &lt;button type="submit" class="btn btn-default"&gt;Sign in&lt;/button&gt; &lt;/div&gt; &lt;/div&gt; &lt;/form&gt; &lt;!-- jQuery (necessary for Bootstrap's JavaScript plugins) --&gt; &lt;script src="js/jquery-latest.js"&gt;&lt;/script&gt; &lt;!-- Include all compiled plugins (below), or include individual files as needed --&gt; &lt;script src="js/bootstrap.min.js"&gt;&lt;/script&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
    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.
 

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