-
AuthorPosts
-
August 16, 2022 at 9:53 pm #1361879
Hello!
Why dosn’t work this code? The logo is center, but the menu buttons on logo.
Header settings is: logo left, menu, right,
Header Style: Minimal with drop shadow (no borders, indicators or transparency)
i have 4 menu buttons.Thanks for your help!
Zsolt
/*————————/
/ CSS – Logo center split menu
/*————————/@media only screen and (min-width: 780px) {
/*In the below code nth-child(x) the value of x should be half the number of total menu items*/
#top #header .av-main-nav li:nth-child(3) {
/ Adjust the width of the logo */
margin-right:150px;
}#header .main_menu {
/*background: gold;*/
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: 100px;
}
}August 17, 2022 at 2:53 am #1361888Hey Zsolt,
Thank you for the inquiry.
There is a minor syntax error in the comment inside the following css rule.
#top #header .av-main-nav li:nth-child(3) { / Adjust the width of the logo */ margin-right:150px; }There should be an asterisk after the first forward slash.
/* Adjust the width of the logo */Best regards,
IsmaelAugust 17, 2022 at 8:58 am #1361899Hey Ismael,
Thank you so much, it’s working!.One more question.
Any ideas how can I distribute the menu buttons evenly on the two edges of the logo?Now: After “Eskuvoi Filmek” (button) the space is bigger than after the logo.
Best Regards,
ZsoltAugust 17, 2022 at 3:44 pm #1361964Hi Zsolt,
Try to replace the translateX value from -50% to -70% in your CSS code:
#header .logo { left: 50%; transform: translateX(-50%); z-index:999; }Just adjust it as you see fit.
Hope it helps.Best regards,
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.
