Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1228259

    Hi.

    I followed a thread on here (apologies, I can’t find it now) to set up the header so the logo was centred and the menu was split either side.

    It works really well except when the browser window is pulled really wide, when for some reason the right hand menu option jump down under the left hand options (please see screenshots)

    This is what I put in the quick CSS section:

     @media only screen and (min-width: 768px) {
    #top #header .av-main-nav li:nth-child(2) {
      /* Adjust the width of the logo */
        margin-right:40vw;
    }
    
    #header .main_menu {
        /*background: #ffffff;*/
        width: 100%;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .av-main-nav-wrap {
        left: 50%;
        transform: translateX(-50%);
    }
    
    #header .logo {
        left: 50%;
        transform: translateX(-50%);
        z-index:999;
    }
    
    #header .logo img {
    	top: 50%;
    	transform: translateY(-50%);
    	max-width: 180px;
    }}}}

    I don’t remember the issue happening until I changed the max container width – could this be affecting it? (Width is now 1080px.)

    header-section-normal

    header-section-issue

    Thanks in advance, everyone.

    #1228506

    Hey Thedogscreative,

    Thanks for the screenshots. Could you post a link to where we can see the actual elements as well please?

    Best regards,
    Rikard

    #1228524

    No worries, please see below.

    #1229598

    Hi Thedogscreative,

    https://share.getcloudapp.com/JruLZmoR Here should be only 2 closing braces.

    Also, the css works fine on my end till about the screen size 1700px and so it has to be limited to that:

    
     @media only screen and (min-width: 768px) and (max-width: 1700px) {
    

    Please make these changes and then we can see how to adjust it further.
    Best regards,
    Victoria

    #1230230

    Hi Victoria,

    Thank you very much for getting back to me. Apologies for the slow reply – the covid pandemic makes for some interesting work arrangements.

    Thanks for the suggested changes, however now, when I reach the breakpoint the logo jumps to the left and all the menu items to the right – as can be seen in this screenshot.

    Any further adjustments? Thanks.

    #1230411

    Hi Thedogscreative,

    Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?

    Best regards,
    Victoria

    #1232012
    This reply has been marked as private.
    #1233013

    Hi Thedogscreative,

    Please try the solution share here in our docs:

    Best regards,
    Victoria

    #1249064

    HI. I figured out it was to do with the space I’d set either side of the logo. I’d set it as a vw value, so when the browser window was too wide it was pushing menu items down onto the next line.

    All sorted now, thanks.

    #1249139

    Hi Thedogscreative,

    Glad you got it working for you! :)

    If you need further assistance please let us know.

    Best regards,
    Victoria

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Logo in centre of header issues’ is closed to new replies.