mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-11 08:04:59 +02:00
drop legend from docs example per #9626
This commit is contained in:
6
css.html
6
css.html
@@ -1347,8 +1347,6 @@ For example, <code><section></code> should be wrapped as inline.
|
||||
<h2 id="forms-example">Basic example</h2>
|
||||
<p>Individual form controls automatically receive some global styling. All textual <code><input></code>, <code><textarea></code>, and <code><select></code> elements with <code>.form-control</code> are set to <code>width: 100%;</code> by default. Wrap labels and controls in <code>.form-group</code> for optimum spacing.</p>
|
||||
<form class="bs-example" role="form">
|
||||
<fieldset>
|
||||
<legend>Legend</legend>
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">Email address</label>
|
||||
<input type="email" class="form-control" id="exampleInputEmail1" placeholder="Enter email">
|
||||
@@ -1368,12 +1366,9 @@ For example, <code><section></code> should be wrapped as inline.
|
||||
</label>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-default">Submit</button>
|
||||
</fieldset>
|
||||
</form><!-- /example -->
|
||||
{% highlight html %}
|
||||
<form role="form">
|
||||
<fieldset>
|
||||
<legend>Legend</legend>
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">Email address</label>
|
||||
<input type="email" class="form-control" id="exampleInputEmail1" placeholder="Enter email">
|
||||
@@ -1393,7 +1388,6 @@ For example, <code><section></code> should be wrapped as inline.
|
||||
</label>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-default">Submit</button>
|
||||
</fieldset>
|
||||
</form>
|
||||
{% endhighlight %}
|
||||
|
||||
|
Reference in New Issue
Block a user