]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Update static form control example 17359/head
authorCaleb Land <caleb@land.fm>
Thu, 27 Aug 2015 03:47:50 +0000 (23:47 -0400)
committerCaleb Land <caleb@land.fm>
Thu, 27 Aug 2015 03:47:50 +0000 (23:47 -0400)
Use the `row` class on the `form-group`, and change the `control-label` class to `form-control-label`

docs/components/forms.md

index f45f207ca36989aa6b943c1346dcc637df9a0f7c..1ebd3ade1e907c766918bfbfcabf73413c0e7dbb 100644 (file)
@@ -397,14 +397,14 @@ When you need to place plain text next to a form label within a form, use the `.
 
 {% example html %}
 <form class="form-horizontal">
-  <div class="form-group">
-    <label class="col-sm-2 control-label">Email</label>
+  <div class="form-group row">
+    <label class="col-sm-2 form-control-label">Email</label>
     <div class="col-sm-10">
       <p class="form-control-static">email@example.com</p>
     </div>
   </div>
-  <div class="form-group">
-    <label for="inputPassword" class="col-sm-2 control-label">Password</label>
+  <div class="form-group row">
+    <label for="inputPassword" class="col-sm-2 form-control-label">Password</label>
     <div class="col-sm-10">
       <input type="password" class="form-control" id="inputPassword" placeholder="Password">
     </div>