diff options
| author | Mark Otto <[email protected]> | 2013-08-15 14:35:15 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2013-08-15 14:35:15 -0700 |
| commit | e3c6a1fc4ffceb7cbcb1885aaa6e96515d0b872a (patch) | |
| tree | de751268f02c32468e6f827b4d3298ae9803e970 /css.html | |
| parent | 5349075f36528e5fc8e2bd7423d2d3c0d2a2a8fa (diff) | |
| download | bootstrap-e3c6a1fc4ffceb7cbcb1885aaa6e96515d0b872a.tar.xz bootstrap-e3c6a1fc4ffceb7cbcb1885aaa6e96515d0b872a.zip | |
form control state ordering
Diffstat (limited to 'css.html')
| -rw-r--r-- | css.html | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -1755,6 +1755,10 @@ For example, <code><section></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><section></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><section></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 %} |
