Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mikeoberdick/4313a8d1c7fb356a2f385b1b73e8391b to your computer and use it in GitHub Desktop.
Save mikeoberdick/4313a8d1c7fb356a2f385b1b73e8391b to your computer and use it in GitHub Desktop.
Bootstrap 5 .dropdown-menu data-offset for drop down menus under nav links that use underlines on hover
//ADD DATA OFFSET TO THE MAIN NAV DROPDOWN MENU
$(".dropdown-menu").attr('data-bs-offset', '10,20');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment