Tagged: border-radius, navigation menu
-
AuthorPosts
-
December 17, 2019 at 8:01 pm #1166992
Hello Support,
I have searched the support forums at length and cannot find a CSS solution for adding a Border Radius to the navigation menu. An effect of “no sharp edges anywhere, rounded corners only” is trying to be achieved through the entire website.
Thanks in advance for any feedback you may be able to provide.
December 18, 2019 at 8:37 am #1167149Hey MLA18,
I’m not sure I understand what you mean b the navigation menu, do you mean the mobile menu? If so then do you want to apply border radius to the flyout container?
Best regards,
RikardDecember 18, 2019 at 3:39 pm #1167324This reply has been marked as private.December 18, 2019 at 3:58 pm #1167333Hey,
Please add following code to bottom of Quick CSS field in Appearance > Editor
.html_av-overlay-side #top #wrap_all div .av-burger-overlay-scroll #av-burger-menu-ul a:hover { border-radius: 100px; }
Regards,
YigitDecember 18, 2019 at 4:11 pm #1167340Thank you for that, Yigit. However the burger menu is not what I am trying to change. The main header navigation menu is what I am trying to change the border radius on. A picture is linked below.
Sorry for any confusion, and thanks for your help as always!
December 18, 2019 at 4:23 pm #1167345Hi,
Please use following code instead
#top .av-main-nav ul ul, .av-main-nav > li > ul { background: transparent!important; border-top: none; } .av-main-nav ul li a { border-radius: 100px; }
It should look like this – https://imgur.com/a/G2ehsXG :)
Best regards,
YigitDecember 18, 2019 at 4:39 pm #1167360December 18, 2019 at 4:49 pm #1167364Hi,
Please try switching the code to following one
#top .av-main-nav ul ul, .av-main-nav > li > ul { background: transparent!important; border-top: none; } .av-main-nav ul li:first-child a { border-top-left-radius: 100px; border-top-right-radius: 100px; } .av-main-nav ul li:last-child a { border-bottom-left-radius: 100px; border-bottom-right-radius: 100px; }
Best regards,
YigitDecember 19, 2019 at 5:08 pm #1167831This reply has been marked as private.December 19, 2019 at 8:35 pm #1167912Hi,
I changed the code to following one and that did it :)
.av-main-nav ul > li:first-child > a { border-top-left-radius: 6px; border-top-right-radius: 6px;} .av-main-nav ul > li:last-child > a {border-bottom-left-radius: 6px; border-bottom-right-radius: 6px;}
Best regards,
YigitDecember 19, 2019 at 10:59 pm #1167972PERFECT!!!
That’s exactly what I needed. As always, thank you so much for your help!
December 19, 2019 at 11:57 pm #1167981 -
AuthorPosts
- The topic ‘Navigation Menu with Border Radius’ is closed to new replies.