// Select the main menu container // Check if the main menu container exists // Set the container to have a horizontal scroll mainMenuContainer.style.overflowX = 'hidden'; // Hide the scrollbar mainMenuContainer.style.display = 'flex'; // Use flex display to prevent items from wrapping // Set each menu item to display inline menuItems[i].style.position = 'relative'; // Ensure relative positioning // Adjust the positioning of the dropdown menus dropdownMenus[j].style.width = '100%'; // Set the width to 100% for full width dropdownMenus[j].style.zIndex = '2'; // Set a higher z-index to bring it above the main container dropdownMenus[j].style.display = 'none'; // Initially hide the dropdowns // Show dropdowns on hover // Hide dropdowns on mouseout // Adjust the positioning of the main menu container mainMenuContainer.style.position = 'relative'; // Ensure relative positioning mainMenuContainer.style.zIndex = '1'; // Set a higher z-index to bring it above other elements mainMenuContainer.style.marginBottom = '-30px'; // Adjust this value based on your design
0
YOUR CART
  • No products in the cart.