aboutsummaryrefslogtreecommitdiff
path: root/components.html
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-11-30 23:38:39 -0800
committerMark Otto <[email protected]>2013-11-30 23:38:39 -0800
commit8dfe93d0b95939f36476105792592d7da7bf3c6a (patch)
tree11c82952ad433a57a9d801f5fae1980b8417e5aa /components.html
parent53047fa587fc8ca5cc0cad751f71fca5470d453a (diff)
downloadbootstrap-8dfe93d0b95939f36476105792592d7da7bf3c6a.tar.xz
bootstrap-8dfe93d0b95939f36476105792592d7da7bf3c6a.zip
Add docs example to go with #11536
Diffstat (limited to 'components.html')
-rw-r--r--components.html21
1 files changed, 19 insertions, 2 deletions
diff --git a/components.html b/components.html
index e4c128ae3..457398078 100644
--- a/components.html
+++ b/components.html
@@ -1153,11 +1153,11 @@ base_url: "../"
{% endhighlight %}
<h3 id="btn-groups-justified">Justified link variation</h3>
- <p>Make a group of buttons stretch at the same size to span the entire width of its parent.</p>
+ <p>Make a group of buttons stretch at the same size to span the entire width of its parent. Also works with button dropdowns within the button group.</p>
<div class="bs-callout bs-callout-warning">
<h4>Element-specific usage</h4>
- <p>This only works with <code>&lt;a&gt;</code> elements as the <code>&lt;button&gt;</code> doesn't pick up these styles.</p>
+ <p>This only works with <code>&lt;a&gt;</code> elements as the <code>&lt;button&gt;</code> doesn't pick up the styles we use to justify content (some <code>display: table-cell;</code>-fu).</p>
</div>
<div class="bs-example">
@@ -1166,6 +1166,23 @@ base_url: "../"
<a class="btn btn-default" role="button">Middle</a>
<a class="btn btn-default" role="button">Right</a>
</div>
+ <br>
+ <div class="btn-group btn-group-justified">
+ <a class="btn btn-default" role="button">Left</a>
+ <a class="btn btn-default" role="button">Middle</a>
+ <div class="btn-group">
+ <a type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
+ Right dropdown <span class="caret"></span>
+ </a>
+ <ul class="dropdown-menu" role="menu">
+ <li><a href="#">Action</a></li>
+ <li><a href="#">Another action</a></li>
+ <li><a href="#">Something else here</a></li>
+ <li class="divider"></li>
+ <li><a href="#">Separated link</a></li>
+ </ul>
+ </div>
+ </div>
</div>
{% highlight html %}
<div class="btn-group btn-group-justified">