X
Back to the
Component Shop
Read this first! Accordion Alert / Callout Another Lightbox Gallery Audio Player with Playlist Auto Sidebar Backbutton Basic Form Before/After Comparison Buttons Collapsible Alert Contact Form Count-down Script Crossfade Slider CSS Parallax Cut-out Text Decorative Background Details/Summary Classes Drilldown Menu Drop-down Easy Mega Menu Equal Height Columns Filtered Portfolio Flip-cards Glossary Table Hamburger Menu HTML Quiz Horizontal Tabs Image Gallery Image Modal Image Shapes Image Slider with Fade Jquery Parallax Lazy Loading Lightbox Gallery Magnifying Glass Masonry Grid Gallery Mega Menu Modal Optimal Image Sizes Oval Image PHP Includes Range Slider Read More Button Responsive Card Table Responsive Navbar Responsive Shrinknav Responsive Sidebar Responsive Table Round Image Scroll to Top Searchbox Simple Shapes Simple Cards Simple Slider Skill Bars Slide-in Nav Sticky Mega Menu Sticky Vertical Menu Subnav in Dropdowns Tabbed Gallery Tab Navigation Text on Image Translucent Image Translucent Text Layer Vertical Tabs Video Video Scroller Wrapping Text Years Completed Zebra Striped Table

Subnav in Dropboxes

This is a bit like the Mega Menu in that you can open a dropdown and find several sublinks arranged horizontally. The menu is put inside an .outer-subnavwrap which makes it easier to limit the width, move it around or make it fixed. If some space above the menu is necessary, it can be set as a margin to that outer wrapper.

Start limiting the width by giving the outer container a max-width of, say 75%, as in this example, margin left and right to auto. The margin top is optional.

Then move to the element .subnav-content. The 75% width component needs to have the remaining 25% split between the left and right side as distance from the edge. You may have to adjust the values a little, like rounding off the decimals e.g. This can be seen under Position on the Styles pane for the element .subnav-content. You can change the width as you like by observing the logic in those settings.

The full width component has been made sticky to the top of the page. That means it will always be visible on the page.

Download the 75% width component (displayed).

Download the full width component.