I am currently working on creating a Megamenu using Bootstrap 4's dropdown
Component.
The issue I'm facing is related to Javascript adding CSS styles with transform
, such as
transform: translate3d(9px, 5px, 0px);
This is causing disruption in my layout. Here is the markup for my Megamenu:
<div class="dropdown-menu megamenu">
<div class="row">
<div class="col-sm-4">
{{ menus.menu_links(item.below, attributes.addClass('mega-menu-item'), menu_level + 1) }}
</div>
<div class="col-sm-4">
{{ view_megamenu(item.url, 'first_column') }}
</div>
<div class="col-sm-4">
{{ view_megamenu(item.url, 'second_column') }}
</div>
</div>
</div>
Given that my website's layout is fluid, I want the Megamenu to always be centered full-width with some margin on either side.
Can you suggest the most effective and stable way to achieve this while using both Bootstrap 4 and the Dropdown component?