Can someone help me create a 100% width dropdown in Webflow that doesn't disappear when I try to hover over it?

Published on
September 22, 2023

To create a 100% width dropdown in Webflow that doesn't disappear when you hover over it, you can follow these steps:

  1. Create a new dropdown element in Webflow by dragging and dropping the "Dropdown" component from the add panel onto your page.
  2. Customize the appearance of the dropdown by selecting it and making changes in the Style panel. You can set the desired width, background color, font, and other properties to match your design.
  3. Inside the dropdown, add a "Dropdown List" element by clicking on the "+ Add" button. This will create the list items that appear when the dropdown is open.
  4. Customize the appearance of the dropdown list by selecting it and making changes in the Style panel. You can set the width to 100% to ensure it expands to the full width of the dropdown container.
  5. To prevent the dropdown from disappearing when you hover over it, you can use custom code.
  6. Open the page settings by clicking on the gear icon in the top right corner of the Designer.
  7. Go to the "Custom Code" tab and paste the following CSS code in the "Head Code" section:
.w-dropdown:hover .w-dropdown-list {  display: block !important;  opacity: 1 !important;  pointer-events: auto !important;}

This code targets the dropdown list element and sets its display to block, opacity to 1, and pointer-events to auto when the dropdown is hovered over.

  1. Save the changes and exit the page settings.
  2. Preview your site or publish it to see the 100% width dropdown in action. It should stay visible when you hover over it.

Remember to adjust any other styling as needed to fit your design requirements. By following these steps, you can create a dropdown in Webflow that expands to 100% width and remains visible when hovered over.

Additional questions:

  1. How can I customize the appearance of the dropdown in Webflow?
  2. Can I add images or icons to the dropdown options?
  3. Is it possible to create a dropdown with multiple levels or sub-menus in Webflow?