Dropdown menu to long and over the window view (part II)
-
Dear Sir / Madam,
One of my subcategories contains more than 20 items, making the dropdown menu very long and not fully visible for the user. I’m using the code from the previous thread but is it possible to get two equal columns that does not gradually sprawl. See for example: https://www.prowebdesign.ro/wordpress-sub-menu-items-split-in-2-columns-the-easy-way/.
The code I’m using is:
.sub-menu-columns .sub-menu { width: 410px; } .sub-menu-columns ul.sub-menu li { display: inline-block; float: left; width: 200px; } .sub-menu-columns ul.sub-menu li:nth-child(odd) { float: left; margin-right: 10px; } .sub-menu-columns ul.sub-menu li:nth-child(even) { float: right; }
Thank you in advance.
Octavii
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Dropdown menu to long and over the window view (part II)’ is closed to new replies.