Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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.

    trapez

    Best Regards

    • This topic was modified 3 years, 5 months ago by Aviatist.
    #1303833

    Hey 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-css3

    Best regards,
    Nikko

    #1304066

    Hey Nikko,
    Thank you so much! It works great and I have now adapted it to my ideas.

    Best regards,
    Florian

    #1304088

    Hi 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,
    Nikko

    #1304623

    Hey 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

    right

    false

    • This reply was modified 3 years, 5 months ago by Aviatist.
    #1304882

    Hi,

    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,
    Yigit

    #1305028

    Hi 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,
    Florian

    #1305036

    Hi,

    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

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Display the sub menu as a trapezoid’ is closed to new replies.