Reputation: 929
I have a button which will display a dropdown menu after clicked. But I want toggle to upward. Is it possible?
<button type="button" data-toggle="dropdown">
<img src="/images/icon_happy.gif" alt="" /> <span class="caret"></span>
</button>
Upvotes: 0
Views: 138
Reputation: 850
Try http://jsfiddle.net/mhtb26en/ . I think you will need to intercept dropdown open and close events to change the style accordingly
span.rotate {
transform : rotate(180deg);
}
Upvotes: 0
Reputation: 1283
Yes, Bootstrap has a dropup
class.
<div class="dropup">
//put your button and ul here
</div>
See bootstrap dropdowns And here is a working fiddle
Upvotes: 1