-
AuthorPosts
-
August 24, 2018 at 10:02 pm #1001400
Hello
I’ve looked at tons of posts and have al ot of code but there are two things that are eluding me here, please (I’ve used basic colours to show what is being edited – they are just there as helpers for now).
1) the burger is not centered – it’s off to the right a bit – I’ve tried all sorts of css but can’t seem to get it exactly in the middle.
2) Once the burger is open, I’ve set the li to align top but I want it below the XHere’s my working code, below. Thanks in advance!
/* header logo and burger menu **********************************************/ /* height of both logo and main menu area */ .responsive #top #wrap_all .container { height: 20px !important; background: green !important; /* just to see what elemnt is targetted */ } .responsive #top .logo, .responsive #top .logo a { width: 100% !important; height: auto !important; display: block !important; margin: 0 auto !important; background: red !important; /* just to see what elemnt is targetted */ } .responsive #top .logo img { padding: 20px !important; margin: 0 auto !important; } /* adjusts the burger within main menu area */ .av-main-nav-wrap ul { top: 0px; } .responsive #top #wrap_all .main_menu { position: static; height: auto !important; } .responsive #top .av-logo-container #avia-menu { margin: 0 auto !important; width: 30px !important; } .responsive #top .av-logo-container .avia-menu { width: 100%; text-align: center !important; background: blue !important; /* just to see what elemnt is targetted */ } #top #wrap_all #header .av-small-burger-icon a { height: auto !important; line-height: 3 !important; } /* burger closed */ .header_color .av-hamburger-inner, .header_color .av-hamburger-inner::before, .header_color .av-hamburger-inner::after { background-color: #fff !important; } /* burger open */ #top .header_color .is-active .av-hamburger-inner, #top .header_color .is-active .av-hamburger-inner::before, #top .header_color .is-active .av-hamburger-inner::after { background-color: #fff !important; } /* tweak the vertical position of the menu when open */ #av-burger-menu-ul { vertical-align: top; /* originally middle */ background: black !important; /* just to see what elemnt is targetted */ } #av-burger-menu-ul li { text-align: center; padding: 5px 0px !important; } .html_av-overlay-full #top #wrap_all #av-burger-menu-ul li a { font-size: 12px; line-height: 16px; color: #afa89c !important; } .html_av-overlay-full #top #wrap_all #av-burger-menu-ul li a:hover { color: #fff !important; opacity: 1 !important; } .html_av-overlay-full #top #wrap_all #av-burger-menu-ul li.current-menu-item .avia-menu-text { color: #fff !important; }
August 24, 2018 at 10:22 pm #1001407Ok, I sorted one thing out, ie, 2, the location of the ul when open – I commented out this code and it’s ok now, but I still can;t get the closed burger to be in the middle, please :)
.responsive #top #wrap_all .container { /* height: 20px !important; background: green !important; just to see what elemnt is targetted */ }
August 25, 2018 at 11:56 am #1001602Hi webWahine,
Adjust your code to be 50px and the burger will be in the center:
@media only screen and (max-width: 989px) { .responsive #top .av-logo-container #avia-menu { margin: 0 auto !important; width: 50px !important; } }
Best regards,
VictoriaAugust 25, 2018 at 6:37 pm #1001719That’s perfect! Thanks so much! How would I modify my code if I wanted the burger to be either flush left or right under the logo, please?
August 26, 2018 at 7:04 pm #1001924Hi webWahine,
What do you mean?
You will probably need to remove the code for the burger positioning that you added and it should be on the right.
Best regards,
VictoriaAugust 27, 2018 at 1:12 am #1002071Ok, super, but what if I’d like to have it on the left, please?
August 27, 2018 at 11:55 am #1002220Hi webWahine,
Will need to set left to 0 and right to auto in that case.
If you need further assistance please let us know.
Best regards,
VictoriaAugust 27, 2018 at 7:21 pm #1002420Ok, super! One last question, please – if I change the mobile burger from small to default it moves over – what is the correct css to grab the default element, please? I have this for the small –
#top #wrap_all #header .av-small-burger-icon a { height: auto !important; line-height: 3 !important; }
August 28, 2018 at 11:43 am #1002633Hi webWahine,
I think you can use this selector instead:
#top #wrap_all #header .av-burger-menu-main a { }
Hope this helps.
Best regards,
NikkoAugust 28, 2018 at 9:35 pm #1002835Thank you! I prefer the smaller one but just in case the client likes it to be more ovbious :)
August 29, 2018 at 6:39 am #1002995Hi,
Thanks for the feedback. Please let us know if you should need any further help on the topic or if we can close it.
Best regards,
RikardAugust 29, 2018 at 7:26 pm #1003244Fell free to close this now. Thanks again! :)
-
AuthorPosts
- You must be logged in to reply to this topic.