diff options
| author | Mark Otto <[email protected]> | 2016-10-09 16:25:41 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2016-10-09 16:25:41 -0700 |
| commit | 8187b9a2d3361cb88d335659e8de1648f7f2038b (patch) | |
| tree | f87d9b466cf789abbca28bbaff822737350cc297 /docs/components/forms.md | |
| parent | fc13ac2701f2c07b6513267d0e8ace882f21a667 (diff) | |
| parent | 9ac7e868dfd16c33e7f418268deca786472f1408 (diff) | |
| download | bootstrap-8187b9a2d3361cb88d335659e8de1648f7f2038b.tar.xz bootstrap-8187b9a2d3361cb88d335659e8de1648f7f2038b.zip | |
Merge pull request #20869 from twbs/static-control
v4 Static form control sizing
Diffstat (limited to 'docs/components/forms.md')
| -rw-r--r-- | docs/components/forms.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/components/forms.md b/docs/components/forms.md index c7da5c0fd..a2d59d920 100644 --- a/docs/components/forms.md +++ b/docs/components/forms.md @@ -516,14 +516,14 @@ Should you have no text within the `<label>`, the input is positioned as you'd e ## Static controls -When you need to place plain text next to a form label within a form, use the `.form-control-static` class on a `<p>`. +When you need to place plain text next to a form label within a form, use the `.form-control-static` class on an element of your choice. Using an element like `<p>` with a default margin? Be sure to use a margin override (as shown below). {% example html %} <form> <div class="form-group row"> <label class="col-sm-2 col-form-label">Email</label> <div class="col-sm-10"> - <p class="form-control-static">[email protected]</p> + <p class="form-control-static mb-0">[email protected]</p> </div> </div> <div class="form-group row"> |
