[Resolved] alignment change on hoover – sub menu

Home Forums Support [Resolved] alignment change on hoover – sub menu

Home Forums Support alignment change on hoover – sub menu

  • This topic has 5 replies, 2 voices, and was last updated 7 years ago by Leo.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #298052
    Nicole

    In my sub menu – how would I change the text to align right just when hoovering?

    I tried to figure it out, and just seemed to make a mess of things.

    Thanks!

    #298112
    Leo
    Staff
    Customer Support

    Hi Nicole,

    Just want to make sure…so you are wanting the submenu item aligning to the left when hovering over its parent menu item but change to the right when it hovers over to the sub menu item?

    Let me know.

    #299011
    Nicole

    Yes! Exactly that!
    Thank you

    #299163
    Leo
    Staff
    Customer Support

    Give this CSS a shot:

    .main-navigation .main-nav ul ul li a:hover {
        text-align: right;
    }

    Adding CSS: https://docs.generatepress.com/article/adding-css/

    Can you provide a link to your site if this doesn’t work?

    #299353
    Nicole

    It worked!
    Thank you so much!

    #299394
    Leo
    Staff
    Customer Support

    You’re welcome 🙂

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.