[Resolved] From Float to Flexbox navigation layout problem

Home Forums Support [Resolved] From Float to Flexbox navigation layout problem

Home Forums Support From Float to Flexbox navigation layout problem

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1661176
    Clemence

    Hi there!

    I searched for answers in the forum and online but the solution given doesnt work for me so here I am.

    Our main menu has 4 entries, 3 are aligned to the left, and the last one is supposed to be aligned on the right (next to the search icon).
    I just switched to flexbox and can’t seem to make it work.
    Previously I was using float: right to make the 4th item “contact us” aligned to the right. With flexbox, I read that I should use margin-left: auto, however it doesn’t work, I don’t understand why.

    I also saw this documentation you made “In the flex version, this class no longer exists. Instead, you should use the [insert link here] generate_menu_bar_items hook to add “menu items” that don’t belong next to the real menu items.”
    but I don’t understand it lol..

    Hope you can help out!
    Cheers

    #1661179
    Leo
    Staff
    Customer Support

    Hi there,

    I believe this article with the video demonstration would help:
    https://docs.generatepress.com/article/generate_menu_bar_items/

    Let me know 🙂

    #1661219
    Clemence

    Yes, working like a charm! Thanks a lot!

    #1662112
    Leo
    Staff
    Customer Support
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.