[Resolved] Navigation bar without padding

Home Forums Support [Resolved] Navigation bar without padding

Home Forums Support Navigation bar without padding

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #1542687
    Jurjen Brouwer

    Last week David helped me te remove the padding on the right site of the navigation bar.
    But what would be the CSS to remove padding on the left side?
    Please help….
    Jurjen

    #1542919
    Leo
    Staff
    Customer Support

    Hi there,

    Any chance you can link us to the site in question?

    You can use the private information field.

    Let me know ๐Ÿ™‚

    #1543039
    Jurjen Brouwer
    #1543099
    Elvin
    Staff
    Customer Support

    Hi,

    I’ve checked your navbar and it doesn’t seem to have any padding but rather, a margin-left:auto; that adds space to make the nav menu items appear centered so it looks visually balanced.

    To clarify: Do you want to remove this margin-left:auto; instead?

    Removing it will result to this: https://share.getcloudapp.com/DOuoW2l2

    If this is the desired effect, you can add this CSS:

    nav.main-navigation .inside-navigation {
        margin-left: unset;
    }
    #1543520
    Jurjen Brouwer

    No, that’s not the effect we wanted….
    We would like to have “Home” a bit more to the left , so it is in the same line as the logo and the W from Warehousing.
    Is that possible?

    The solution for the right side David send worked. Now looking for the solution on the left side


    @media
    (min-width: 1100px) {
    .main-navigation .main-nav ul li:last-child a {
    padding-right: 0;
    }
    }

    #1543752
    David
    Staff
    Customer Support

    Hi there,

    change your current CSS to this:

    @media(min-width: 1100px) {
        .main-navigation .main-nav > ul > li:first-child a {
            padding-left: 0;
        }
    
        .main-navigation .main-nav > ul > li:last-child a {
            padding-right: 0;
        }
    
    }
    #1543885
    Jurjen Brouwer

    Thanks again, David
    Happy !!!!!!!

    #1544015
    David
    Staff
    Customer Support

    Glad to be of help

    #1545758
    Jurjen Brouwer

    The nav.bar is just how we wanted it to be , but :
    the first item in de sub menu seems to be affected too. ๐Ÿ™
    Please help (again)
    Jurjen

    #1545777
    David
    Staff
    Customer Support
    #1546219
    Jurjen Brouwer

    Didn’t work, the first item in the dropdown menu was out of line (completely left)
    I removed the CSS….

    #1546485
    David
    Staff
    Customer Support
    #1546502
    Jurjen Brouwer

    That seems to do the trick….. Thanks…

    #1546601
    David
    Staff
    Customer Support

    Glad to be of help

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