Menu down arrow wrapping issue
-
Hello,
First, thank you for your help with getting the top navigation menu to appear in tablet width.
( https://ww.wp.xz.cn/support/topic/adjust-mobile-width-breakpoint/ )Now that the menu appears in table width, we’ve noticed in 744px to 767px width for menus which have submenus (and therefore a downward pointing arrow next to them) that the down arrow wraps to the next line and causes vertical spacing issues. Also, the submenu items for that menu appear centered instead of left aligned.
In the page at provided link at 744px to 767px width, the down arrow next to the “Sample” menu wraps to the next line, and its “Sample Page” submenu item appears centered instead of left aligned.
I tried to adjust the menu item width and set the flex-direction to row, but that didn’t help.
What is the CSS to use to prevent the down arrow from wrapping, and causing submenu text to be centered instead of left aligned?
Thank you for your help!
The page I need help with: [log in to see the link]
-
Hi @michaelb428ping,
Could you please make the following changes to resolve your issue?
Remove the code we provided earlier.@media (min-width: 744px) and (max-width: 767px) {
.cm-primary-nav ul {
display: block;
}
.cm-primary-nav li {
display: inline-block;
}
}
Add the following code to fix the issue:@media (min-width: 744px) and (max-width: 767px) {
.cm-primary-nav ul {
display: flex;
}
}Best regards!
That worked, thank you so much!
Hi @michaelb428ping,
Glad I could help you. If you’ve been enjoying our theme and support and the theme, we’d really appreciate it if you could leave us a quick review here: https://ww.wp.xz.cn/support/theme/colormag/reviews. Your feedback means a lot and helps others learn about us too.
Also, please mark this topic as resolved, as the mentioned issue has already been fixed on your site.
Best regards,
Thank you!
The topic ‘Menu down arrow wrapping issue’ is closed to new replies.
