Created
June 6, 2013 21:20
-
-
Save bradgignac/5725063 to your computer and use it in GitHub Desktop.
Menus without a target.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// You'll need to hardcode the width to display them without a target. | |
<div class="dropdown" style="width: 200px;"> | |
<ul class="dropdown-menu visible"> | |
<li><span class="dropdown-category">Category</span></li> | |
<li><a href="#">One</a></li> | |
<li><a href="#">Two</a></li> | |
<li> | |
<a href="#">This is a really long link <i class="icon-external"></i> <span class="dropdown-caption">And I have a caption.</a> | |
</li> | |
</ul> | |
</div> | |
// You'll need to hardcode the width to display them without a target. | |
<div class="dropdown" style="width: 200px;"> | |
<ul class="dropdown-menu visible"> | |
<li><span class="dropdown-category">Category</span></li> | |
<li><a href="#">One</a></li> | |
<li><a href="#">Two</a></li> | |
<li> | |
<a href="#">This is a really long link <i class="icon-external"></i> <span class="dropdown-caption">And I have a caption.</a> | |
</li> | |
</ul> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For the outer DIV, setting
position: static;
instead ofwidth: 200px;
might work better. It will cause your markup example to render beneath the menus.