From: Mark Otto Date: Sun, 18 Jun 2017 03:56:26 +0000 (-0700) Subject: Add examples of forms in dropdown menus X-Git-Tag: v4.0.0-beta.2~442 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d23813988a0d0f96aae566ff13f6419ee97e7418;p=thirdparty%2Fbootstrap.git Add examples of forms in dropdown menus --- diff --git a/docs/4.0/components/dropdowns.md b/docs/4.0/components/dropdowns.md index 9f444d5672..15f810be81 100644 --- a/docs/4.0/components/dropdowns.md +++ b/docs/4.0/components/dropdowns.md @@ -474,6 +474,55 @@ Separate groups of related menu items with a divider. {% endexample %} +## Menu forms + +Put a form within a dropdown menu, or make it into a dropdown menu, and use [margin or padding utilities]({{ site.baseurl }}/docs/{{ site.docs_version }}/utilities/spacing/) to give it the negative space you require. + +{% example html %} + +{% endexample %} + +{% example html %} + +{% endexample %} + ## Disabled menu items Add `.disabled` to items in the dropdown to **style them as disabled**.