Site logo

[Resolved] Footer Menu – Center and Divider

Home Forums Support [Resolved] Footer Menu – Center and Divider

Home Forums Support Footer Menu – Center and Divider

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #2531203
    Martin

    Hi there
    I have created a horizontal menu in the footer but would like to center the menu and add a divider between all items except the last one.

    I’m sure it’s a teeny bit of CSS. I tried this:

    .widget_nav_menu > li:not(:last-child) > a:after {
        content: "|";
    }

    I’m guessing it requires a DIV to center it?
    Thanks.

    Martin

    #2531279
    David
    Staff
    Customer Support

    Hi there.

    can i see the site with the footer menu ?

    #2531996
    Martin

    Sure, here it is:
    https://old-pumphouse.com

    #2532022
    Ying
    Staff
    Customer Support

    Hi Martin,

    Try this CSS:

    .footer-widgets .widget_nav_menu li:not(:last-child):after {
        content: "|";
    }
    
    .footer-widgets .widget_nav_menu li a {
        padding: 0 15px 0 15px;
    }
    #2532108
    Martin

    Thank you.
    Can I ask; why the 15px padding on the right?

    #2532268
    Ying
    Staff
    Customer Support

    Good question 🙂

    Adding both left and right padding seems to make more sense.

    I’ve updated the CSS.

    #2532777
    Martin

    Thank you for this Ying.

    #2533499
    Ying
    Staff
    Customer Support

    No problem 🙂

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