Bootstrap CSS Classes

Bootstrap CSS class .dropdown-menu-right

<div class="btn-group">
  <button type="button" class="btn btn-secondary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
    This dropdown's menu is right-aligned
  </button>
  <div class="dropdown-menu dropdown-menu-right">
    <button class="dropdown-item" type="button">Action</button>
    <button class="dropdown-item" type="button">Another action</button>
    <button class="dropdown-item" type="button">Something else here</button>
  </div>
</div>

Preview

CSS source

/* _dropdown.scss:36 */
.dropdown-menu-right {
  right: 0;
  left: auto;
}

Check .dropdown-menu-right in a real project

Click one of the examples listed below to open the Shuffle Visual Editor with the UI library that uses the selected component.

More Bootstrap CSS classes in Dropdowns category

© 2024 Shuffle. All rights reserved.