Viewing 14 posts - 1 through 14 (of 14 total)
  • Posted in: Dante
  • #66495
    Brentnauer
    Member
    Post count: 65

    How best would I spread my main menu items out across the available header space? I want to use all available space.

    Thanks

    #66595
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Not sure which header you are using but try:

    nav#main-navigation .menu > li {
      padding: 0 20px 20px;
    }

    If you want to edit the space you will need to alter the second value (20px)

    – Kyle

    #67067
    Brentnauer
    Member
    Post count: 65

    Hi Kyle,

    Unfortunately this didn’t seem to have any effect. I’m using header option 2 if that helps any.

    What I’m trying to achieve is similar to the navigation here: https://www.kimbellart.org — All the navigation items are centered and are padded to take up all available space.

    Thanks

    #67129
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Try adding this instead:

    nav#main-navigation .menu.full-width > li:first-child {
      padding: 0 20px 20px 0;
    }
    nav#main-navigation .menu.full-width > li {
      padding: 0 20px 20px;
    }

    – Kyle

    #67245
    Brentnauer
    Member
    Post count: 65

    Still nothing – Absolutely no change in the menu’s appearance.

    #67256
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    I’ve tested that code and it works fine. Please provide your link so that I can look into it for you.

    – Kyle

    #67274
    Brentnauer
    Member
    Post count: 65
    This reply has been marked as private.
    #67293
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Ok this should definitely work:

    nav .menu > li {
      padding: 0 20px 20px!important;
    }

    – Kyle

    #67338
    Brentnauer
    Member
    Post count: 65

    That did the trick, thanks!

    #67350
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Great! No problem 🙂

    #67366
    Brentnauer
    Member
    Post count: 65
    This reply has been marked as private.
    #67370
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Ok change it to:

    @media only screen and (min-width: 1200px) { 
    nav .menu > li {
      padding: 0 20px 20px!important;
    }
    }

    – Kyle

    #67376
    Brentnauer
    Member
    Post count: 65

    I love you, Kyle.

    One more question: What would the CSS be if I wanted to make adjustments on the tablet-width (the next breakpoint down from full width).

    This works perfect, thanks.

    #67382
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    The width of tablet is 768, so if you want to apply styles for above tablet, add min-width:768; and if you want it to be tablet and less and max-width:768;

    Hope this helps

    – Kyle

Viewing 14 posts - 1 through 14 (of 14 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