Anilton veiga
Anilton veiga

Reputation: 11

Split button dropdowns issue

I'm using bootstrap and when I create a button with dropdown he incorrectly places the arrow.

The following is a sample image.

http://postimg.org/image/5ccnnfwsl/

I'm using the code

<div class="btn-group">
  <button type="button" class="btn btn-danger">Action</button>
  <button type="button" class="btn btn-danger dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
    <span class="caret"></span>
    <span class="sr-only">Toggle Dropdown</span>
  </button>
  <ul class="dropdown-menu">
    <li><a href="#">Action</a></li>
    <li><a href="#">Another action</a></li>
    <li><a href="#">Something else here</a></li>
    <li role="separator" class="divider"></li>
    <li><a href="#">Separated link</a></li>
  </ul>
</div>           

Upvotes: 0

Views: 103

Answers (2)

Anilton veiga
Anilton veiga

Reputation: 11

The problem was that I had not set the <! DOCTYPE html>. Does anyone know why without this tag it just broke that element?

Upvotes: 1

potatopeelings
potatopeelings

Reputation: 41065

One reason for this could be the line-height property for your dropdown-toggle class being set to 0.

Upvotes: 0

Related Questions