daydreamer
daydreamer

Reputation: 91959

Twitter-Bootstrap/Jquery : Dropdown doesn't lie below button, rather start from start of div

Here is the jsfiddle : http://jsfiddle.net/hhimanshu/sYLRq/

Current

Required
- Click on "Add to list" and drop-down falls just below "Add to list button"

What is wrong I am doing here?

What is that I need to fix?

Thank you

Upvotes: 0

Views: 150

Answers (1)

flynfish
flynfish

Reputation: 5867

It's because the width of your btn-group is across the whole screen. You can give it a display:inline-block; to fix:

<div class="btn-group open" style="display:inline-block;">

You should do that in css rather than inline.

JSFIDDLE

Upvotes: 2

Related Questions