[Resolved] Menu padding

Home Forums Support [Resolved] Menu padding

Home Forums Support Menu padding

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #836327
    Torsten

    Hi,
    I’m trying to left-align the 1st menu item with the text/blog in “contact” and “blog”, even if resizing the browser window.
    On top, under login the menu moves a few pixel to the right, which it shouldn’t…
    Thanks ahead for your support,
    Torsten

    #836461
    David
    Staff
    Customer Support

    Hi there,

    sorry i am not fully understanding the issue. Can you provide a mockup of how you want it to look ? Or what the issue is?

    #836491
    Torsten

    Sorry for that,
    in both screenshots below I copied the menu, the upper menu is the actual menu position in both images, the second position below shows where the menu should be.
    Hope this helps,
    thanks again,
    Torsten

    resized screen: https://bit.ly/2u39sbh
    full screen: https://bit.ly/2T0Bkaj

    #836498
    Torsten

    here is another one from the blog page with just the actual menu and the line to which the menu should be aligned.
    https://bit.ly/2NY2QUM
    best,
    Torsten

    #836511
    David
    Staff
    Customer Support

    Aah ok, so we need to offset the menu item padding of 15px with some negative margins like so:

    @media (min-width: 1360px) {
        .main-navigation ul {
            margin-left: -15px;
        }
    }

    May need to tweak that min-width setting a little.

    #836522
    Torsten

    lovely!
    Thx a lot.

    #836549
    David
    Staff
    Customer Support

    You’re welcome

    #836554
    Torsten

    sorry, one more…
    when clicking on LOGIN the menu items are moving slightly to the right.
    any idea?
    thx and best,
    Torsten

    #836725
    David
    Staff
    Customer Support

    I am not seeing that? maybe its only when admin is logged in.

    #836736
    Torsten

    Hi David,
    no, it’s even happening when logged out.
    tested in Chrome, Firefox and Edge, all with the same effect.
    You can see the effect pretty good in this gif → https://bit.ly/2Y1Taxk
    not perfectly as it moves up a little too, which it doesn’t on the Website…
    best,
    Torsten

    #837091
    Tom
    Lead Developer
    Lead Developer

    I believe what you’re seeing there is the scrollbar disappearing because the page isn’t long enough.

    #837131
    Ferdinand

    I was about to ask for help resolving what I thought was my own menu padding problem when, for whatever reason, I pulled up Chrome’s “Inspect Element” [Ctrl + Shft + I]. The diagram under the “Computed” tab clearly showed it wasn’t the nav bar padding but my Page’s unique “Feature Image” top margin (just below the nav bar) that was the issue–it was set to 30px, which would make sense if I didn’t intend it to replace my header image. So, a search under the “Elements” tab led to this string which I copy-pasted into Additional CSS and set to 0px:

    .separate-containers .page-header-image, .separate-containers .page-header-content {
    margin-top: 30px;
    }

    #837156
    Leo
    Staff
    Customer Support

    Glad you figured out!

    #837352
    Torsten

    Thx, me stupid…
    😉

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