<pclass="lead">Toggleable, contextual menu for displaying lists of links. Made interactive with the <ahref="./javascript.html#dropdowns">dropdown JavaScript plugin</a>.</p>
<h2>Example</h2>
<h3>Example</h3>
<p>Toggleable, contextual menu for displaying lists of links. Made interactive with the <ahref="./javascript.html#dropdowns">dropdown JavaScript plugin</a>.</p>
<p>Wrap the dropdown's trigger and the dropdown menu within <code>.dropdown</code>, or another element that declares <code>position: relative;</code>. Then add the menu's HTML.</p>
<p>Looking at just the dropdown menu, here's the required HTML. You need to wrap the dropdown's trigger and the dropdown menu within <code>.dropdown</code>, or another element that declares <code>position: relative;</code>. Then just create the menu.</p>
<p>Align menus to the right and add include additional levels of dropdowns.</p>
<h3>Aligning the menus</h3>
<h3>Aligning the menus</h3>
<p>Add <code>.pull-right</code> to a <code>.dropdown-menu</code> to right align the dropdown menu.</p>
<p>Add <code>.pull-right</code> to a <code>.dropdown-menu</code> to right align the dropdown menu.</p>
<preclass="prettyprint linenums">
<preclass="prettyprint linenums">
...
@@ -190,8 +175,7 @@
...
@@ -190,8 +175,7 @@
<h1>Button groups</h1>
<h1>Button groups</h1>
</div>
</div>
<h2>Examples</h2>
<pclass="lead">Group a series of buttons together on a single line with the button group. Add on optional JavaScript radio and checkbox style behavior with <ahref="./javascript.html#buttons">our buttons plugin</a>.</p>
<p>Two basic options, along with two more specific variations.</p>
<h3>Single button group</h3>
<h3>Single button group</h3>
<p>Wrap a series of buttons with <code>.btn</code> in <code>.btn-group</code>.</p>
<p>Wrap a series of buttons with <code>.btn</code> in <code>.btn-group</code>.</p>
...
@@ -254,15 +238,21 @@
...
@@ -254,15 +238,21 @@
</div>
</div>
</pre>
</pre>
<h3>Justified button groups</h3>
<p>Make a group of buttons stretch at the same size to span the entire width of its parent. <strong>This only works with <code><a></code> elements</strong> as the <code><button></code> doesn't pick up these styles.</p>
<divclass="bs-docs-example">
<divclass="btn-group btn-group-justified">
<ahref="#"class="btn">Left</a>
<ahref="#"class="btn">Right</a>
<ahref="#"class="btn">Middle</a>
</div>
</div>
<preclass="prettyprint linenums">
<div class="btn-group btn-group-justified">
...
</div>
</pre>
<hrclass="bs-docs-separator">
<h4>Checkbox and radio flavors</h4>
<p>Button groups can also function as radios, where only one button may be active, or checkboxes, where any number of buttons may be active. View <ahref="./javascript.html#buttons">the JavaScript docs</a> for that.</p>
<h4>Dropdowns in button groups</h4>
<p>Buttons with dropdowns must be individually wrapped in their own <code>.btn-group</code> within a <code>.btn-toolbar</code> for proper rendering.</p>
<pclass="lead">Toggleable, contextual menu for displaying lists of links. Made interactive with the <ahref="./javascript.html#dropdowns">dropdown JavaScript plugin</a>.</p>
<h2>Example</h2>
<h3>Example</h3>
<p>Toggleable, contextual menu for displaying lists of links. Made interactive with the <ahref="./javascript.html#dropdowns">dropdown JavaScript plugin</a>.</p>
<p>Wrap the dropdown's trigger and the dropdown menu within <code>.dropdown</code>, or another element that declares <code>position: relative;</code>. Then add the menu's HTML.</p>
<p>Looking at just the dropdown menu, here's the required HTML. You need to wrap the dropdown's trigger and the dropdown menu within <code>.dropdown</code>, or another element that declares <code>position: relative;</code>. Then just create the menu.</p>
<p>Align menus to the right and add include additional levels of dropdowns.</p>
<h3>Aligning the menus</h3>
<h3>Aligning the menus</h3>
<p>Add <code>.pull-right</code> to a <code>.dropdown-menu</code> to right align the dropdown menu.</p>
<p>Add <code>.pull-right</code> to a <code>.dropdown-menu</code> to right align the dropdown menu.</p>
<preclass="prettyprint linenums">
<preclass="prettyprint linenums">
...
@@ -122,8 +107,7 @@
...
@@ -122,8 +107,7 @@
<h1>Button groups</h1>
<h1>Button groups</h1>
</div>
</div>
<h2>Examples</h2>
<pclass="lead">Group a series of buttons together on a single line with the button group. Add on optional JavaScript radio and checkbox style behavior with <ahref="./javascript.html#buttons">our buttons plugin</a>.</p>
<p>Two basic options, along with two more specific variations.</p>
<h3>Single button group</h3>
<h3>Single button group</h3>
<p>Wrap a series of buttons with <code>.btn</code> in <code>.btn-group</code>.</p>
<p>Wrap a series of buttons with <code>.btn</code> in <code>.btn-group</code>.</p>
...
@@ -186,15 +170,21 @@
...
@@ -186,15 +170,21 @@
</div>
</div>
</pre>
</pre>
<h3>Justified button groups</h3>
<p>Make a group of buttons stretch at the same size to span the entire width of its parent. <strong>This only works with <code><a></code> elements</strong> as the <code><button></code> doesn't pick up these styles.</p>
<divclass="bs-docs-example">
<divclass="btn-group btn-group-justified">
<ahref="#"class="btn">Left</a>
<ahref="#"class="btn">Right</a>
<ahref="#"class="btn">Middle</a>
</div>
</div>
<preclass="prettyprint linenums">
<div class="btn-group btn-group-justified">
...
</div>
</pre>
<hrclass="bs-docs-separator">
<h4>Checkbox and radio flavors</h4>
<p>Button groups can also function as radios, where only one button may be active, or checkboxes, where any number of buttons may be active. View <ahref="./javascript.html#buttons">the JavaScript docs</a> for that.</p>
<h4>Dropdowns in button groups</h4>
<p>Buttons with dropdowns must be individually wrapped in their own <code>.btn-group</code> within a <code>.btn-toolbar</code> for proper rendering.</p>