-
AuthorPosts
-
December 16, 2019 at 12:48 pm #1166342
Hello Enfold team,
I tried to use the enfold solution to have a centered logo and a menu left and right. This is the code is used:
/* 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;
}
}The Problem is, that the logo gets shrinked with this solution.
Because of that I tried:#header .logo img {
top: 50%;
transform: translateY(-50%);
max-width: 300px;
}Now the logo has the right size but it overlays the menu items.
I would like to have a large logo and the menu items on the very right and left.
Greetings
FelixDecember 16, 2019 at 3:01 pm #1166415Hi,
Could you please post a link of your website so we can see the issue? :)
Cheers!
YigitDecember 16, 2019 at 5:01 pm #1166500Hey Yigit,
Thank you for the quick answer!
you find a temporary login in the private Content :)December 18, 2019 at 6:56 am #1167130Hi,
Thank you for the update.
You can adjust the right margin of the “About” menu item.
#top #header .av-main-nav li:nth-child(3) { margin-right:150px; }Try to set it to 250px.
#top #header .av-main-nav li:nth-child(3) { margin-right: 250px; }Best regards,
IsmaelDecember 18, 2019 at 9:40 am #1167180Thank you Ismael!
That worked perfectly!
Greetings Felix
December 18, 2019 at 11:20 am #1167213 -
AuthorPosts
- The topic ‘Logo centered and menu left and right’ is closed to new replies.
