Bootstrap CSS Classes

Bootstrap CSS class .dropdown-menu-md-start

    <div class="dropdown">
        <button class="btn btn-primary dropdown-toggle" type="button" id="dropdownMenuButton" data-bs-toggle="dropdown" aria-expanded="false">
          Dropdown
        </button>
        <ul class="dropdown-menu dropdown-menu-md-start" aria-labelledby="dropdownMenuButton">
          <li><a class="dropdown-item" href="#">Option 1</a></li>
          <li><a class="dropdown-item" href="#">Option 2</a></li>
          <li><a class="dropdown-item" href="#">Option 3</a></li>
        </ul>
    </div>

Preview

Are you tired of writing HTML by hand?

More Bootstrap CSS classes in Dropdowns category

© 2024 Shuffle. All rights reserved.