New Landing How can we help? Themeforest Theme Support Joyn Can't get Joyn Menu to only put CSS on last child

Viewing 6 posts - 1 through 6 (of 6 total)
  • Posted in: Joyn
  • #209443
    mhote
    Member
    Post count: 394

    Hi, can’t seem to control CSS of the last child (far right) on the main menu.

    Current code is:

    .menu-item-text:last-child {
        border: 1px solid #fff;
        border-radius: 10px;
        padding: 10px;

    But that’s applying to all menu items. How can we control just the far right?

    Thanks

    #209575
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    Should be:

    #main-navigation ul.menu .parent:last-child to target the li tag, or

    #main-navigation ul.menu .parent:last-child > a to target the link tag

    – Kyle

    #209602
    mhote
    Member
    Post count: 394
    This reply has been marked as private.
    #209607
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Sorry, this works: #main-navigation ul.menu .menu-item:last-child if you’re trying to apply the css to the span then use this:

    #main-navigation ul.menu .menu-item:last-child a .menu-item-text {
      
    }

    – Kyle

    #209617
    mhote
    Member
    Post count: 394
    This reply has been marked as private.
    #209624
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Because you have this in your custom css:

    /* TOP BAR WITH NAKED HEADER */
    
    body[class*="header-naked"] #top-bar {
      display: block!important;
    }
    .header-wrap[class*="page-header-naked"] {
      top: 37px;
    }

    – Kyle

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register