Nav-pills open to left

Asked

Viewed 108 times

0

I’m following the following code:

<ul class="nav nav-pills">
  ...
  <li role="presentation" class="dropdown">
    <a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
      Dropdown <span class="caret"></span>
    </a>
    <ul class="dropdown-menu">
      ...
    </ul>
  </li>
  ...
</ul>

But I’d like the dropdown to open to the left.
I tried the class pull-left but to no avail.

Some help ?

1 answer

0


RESOLVED

I added the following style to the tag <ul>

<ul class="dropdown-menu" style="right: 0; left: auto;">

Browser other questions tagged

You are not signed in. Login or sign up in order to post.