I'm experiencing an issue with my dropdown menu. In the navbar, I have two dropdown menus - one for the user and the other for notifications. The user's dropdown works fine, but the notification dropdown appears to the left of my site when clicked. Adding dropdown-menu-right
moves it to the right, but it remains stuck there. Is there a way to place the dropdown below the "chat" bubble icon? (I am using Bootstrap 4).
If I do not include dropdown-menu-right
in my HTML, this is what happens:
https://i.sstatic.net/XJUrf.png
If I include dropdown-menu-right
, this is the outcome:
https://i.sstatic.net/Llg2d.png
This is the HTML code for my notification dropdown:
<a href="#" class="nav-link dropdown-toggle user-menu-link" data-toggle="dropdown" role="button"
aria-haspopup="true" aria-expanded="false"><i class="fas fa-comment"></i>
<ul class="dropdown-menu message-notification-dropdown dropdown-menu-right">
<div>
<li>
<a href="#">Message 1</a>
</li>
</div>
</ul>
</a>