Tagged: sub-menu
-
AuthorPosts
-
June 2, 2021 at 2:17 pm #1303594
Hello Enfolder,
how can I display the sub menu as a trapezoid? It should have the shape as I have drawn in the attached picture.Best Regards
- This topic was modified 3 years, 5 months ago by Aviatist.
June 3, 2021 at 5:08 pm #1303833Hey Aviatist,
Please try adding this CSS code in Enfold > General Styling > Quick CSS:
#top #header #avia-menu > li > .sub-menu:before { border-top: 236px solid #d63e2d; border-left: 50px solid transparent; border-right: 50px solid transparent; height: 0; width: 100px; content: ''; position: absolute; left: -50px; } #top #header #avia-menu > li > .sub-menu:after { border-top: 236px solid #d63e2d; border-left: 50px solid transparent; border-right: 50px solid transparent; height: 0; width: 100px; content: ''; position: absolute; right: -50px; } #top #header #avia-menu > #menu-item-1047 > .sub-menu:before { border-top: 426px solid #d63e2d; } #top #header #avia-menu > #menu-item-1047 > .sub-menu:after { border-top: 426px solid #d63e2d; }
You would need to tweak it, but this should help a bit.
You can also check this for further information: https://stackoverflow.com/questions/7920754/how-to-draw-a-trapezium-trapezoid-with-css3Best regards,
NikkoJune 4, 2021 at 3:15 pm #1304066Hey Nikko,
Thank you so much! It works great and I have now adapted it to my ideas.Best regards,
FlorianJune 4, 2021 at 4:02 pm #1304088Hi Florian,
We’re happy that we could help :)
Let us know if you need further assistance or if we can close this thread.Best regards,
NikkoJune 8, 2021 at 1:12 pm #1304623Hey Nikko,
I have one more question about the menu.
I am currently trying to address the 1-level sub-menu without it affecting the second-level sub-menu. Can you help me there? On the development page, hover over “Abteilungen” and then “Fußball”. You will see the line that appears under the word “fußball”. This line should not appear at “1. Herren”.I hope google translate made it understandable.
Best regards,
Florian- This reply was modified 3 years, 5 months ago by Aviatist.
June 9, 2021 at 2:38 pm #1304882Hi,
I added following code to bottom of Quick CSS field
#top .av-main-nav ul.sub-menu ul.sub-menu a::after { display: none; }
Please review your website :)
Best regards,
YigitJune 10, 2021 at 9:32 am #1305028Hi Yigit,
Perfect! Learned something again, thank you very much for the great support! I think the thread can be closed.I wish you and your team a great day.
Best regards,
FlorianJune 10, 2021 at 10:18 am #1305036Hi,
You are welcome! :)
For your information, you can take a look at Enfold documentation here – https://kriesi.at/documentation/enfold/
If you have any other questions or issues, feel free to start a new thread under Enfold sub forum and we will gladly try to help you :)
Enjoy the rest of your day!
Best regards,
Yigit -
AuthorPosts
- The topic ‘Display the sub menu as a trapezoid’ is closed to new replies.