-
AuthorPosts
-
July 6, 2020 at 11:58 am #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.)
Thanks in advance, everyone.
July 7, 2020 at 9:17 am #1228506Hey Thedogscreative,
Thanks for the screenshots. Could you post a link to where we can see the actual elements as well please?
Best regards,
RikardJuly 7, 2020 at 10:16 am #1228524No worries, please see below.
July 11, 2020 at 2:43 pm #1229598Hi 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,
VictoriaJuly 14, 2020 at 9:08 am #1230230Hi 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.
July 14, 2020 at 7:53 pm #1230411Hi 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,
VictoriaJuly 21, 2020 at 12:34 pm #1232012This reply has been marked as private.July 24, 2020 at 2:59 pm #1233013September 28, 2020 at 4:17 pm #1249064HI. 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.
September 28, 2020 at 7:31 pm #1249139Hi Thedogscreative,
Glad you got it working for you! :)
If you need further assistance please let us know.
Best regards,
Victoria -
AuthorPosts
- The topic ‘Logo in centre of header issues’ is closed to new replies.