![]() |
VOOZH | about |
Bootstrap 5 Dropdowns Responsive alignment is used to align dropdowns by using the responsive variation classes. We need to add a breakpoint-specific alignment class to make the dropdown alignment responsive.
<ul class="dropdown-menu dropdown-menu-*-**">
<li>Content</li>
</ul>
Example 1: In this example, The Dropdown menu will be aligned to the end on large screen, and left aligned when not on large screen
Output
Example 2: In this example, The Dropdown menu will be aligned to the end on a medium screen and left aligned on the small screen and large screen.
Output
References: https://getbootstrap.com/docs/5.0/components/dropdowns/#responsive-alignment