aboutsummaryrefslogtreecommitdiff
path: root/css.html
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-08-15 14:35:15 -0700
committerMark Otto <[email protected]>2013-08-15 14:35:15 -0700
commite3c6a1fc4ffceb7cbcb1885aaa6e96515d0b872a (patch)
treede751268f02c32468e6f827b4d3298ae9803e970 /css.html
parent5349075f36528e5fc8e2bd7423d2d3c0d2a2a8fa (diff)
downloadbootstrap-e3c6a1fc4ffceb7cbcb1885aaa6e96515d0b872a.tar.xz
bootstrap-e3c6a1fc4ffceb7cbcb1885aaa6e96515d0b872a.zip
form control state ordering
Diffstat (limited to 'css.html')
-rw-r--r--css.html16
1 files changed, 8 insertions, 8 deletions
diff --git a/css.html b/css.html
index f784f0f7e..64751da93 100644
--- a/css.html
+++ b/css.html
@@ -1755,6 +1755,10 @@ For example, <code>&lt;section&gt;</code> should be wrapped as inline.
<p>Bootstrap includes validation styles for error, warning, and success states on form controls. To use, add <code>.has-warning</code>, <code>.has-error</code>, or <code>.has-success</code> to the parent element. Any <code>.control-label</code>, <code>.form-control</code>, and <code>.help-block</code> within that element will receive the validation styles.</p>
<form class="bs-example">
+ <div class="form-group has-success">
+ <label class="control-label" for="inputSuccess">Input with success</label>
+ <input type="text" class="form-control" id="inputSuccess">
+ </div>
<div class="form-group has-warning">
<label class="control-label" for="inputWarning">Input with warning</label>
<input type="text" class="form-control" id="inputWarning">
@@ -1763,12 +1767,12 @@ For example, <code>&lt;section&gt;</code> should be wrapped as inline.
<label class="control-label" for="inputError">Input with error</label>
<input type="text" class="form-control" id="inputError">
</div>
- <div class="form-group has-success">
- <label class="control-label" for="inputSuccess">Input with success</label>
- <input type="text" class="form-control" id="inputSuccess">
- </div>
</form>
{% highlight html %}
+<div class="form-group has-success">
+ <label class="control-label" for="inputSuccess">Input with success</label>
+ <input type="text" class="form-control" id="inputSuccess">
+</div>
<div class="form-group has-warning">
<label class="control-label" for="inputWarning">Input with warning</label>
<input type="text" class="form-control" id="inputWarning">
@@ -1777,10 +1781,6 @@ For example, <code>&lt;section&gt;</code> should be wrapped as inline.
<label class="control-label" for="inputError">Input with error</label>
<input type="text" class="form-control" id="inputError">
</div>
-<div class="form-group has-success">
- <label class="control-label" for="inputSuccess">Input with success</label>
- <input type="text" class="form-control" id="inputSuccess">
-</div>
{% endhighlight %}