
-
AuthorPosts
-
March 14, 2025 at 7:21 pm #1479356
Dear Support Team,
On the website https://www.schlosswirtschaft-schwaige.de/, the logo is centred in the header and the navigation is to the right and left of it. This works well on a desktop PC, but no longer on a laptop, where part of the navigation hangs in the content area: see: Screenshot laptop: https://www.schlosswirtschaft-schwaige.de/support/laptop-menu.jpg
The script for centring the logo and navigation is as follows:
#header .main_menu {
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: 300px;
}.av-main-nav>li>a {
padding: 0 40px;
}.av-main-nav>li>a {
padding-top: 50px !important;
}
}.html_header_top.html_header_transparency #header {
position: relative;
}.responsive body.boxed#top, .responsive.html_boxed.html_header_sticky #top #header, .responsive.html_boxed.html_header_transparency #top #header {
max-width: 100%;
}.responsive.html_mobile_menu_tablet #top #header_main > .container .main_menu .av-main-nav > li > a, .responsive.html_mobile_menu_tablet #top #wrap_all .av-logo-container {
height: 90px;
line-height: 90px;
}#top #header .av-main-nav > li.menu-item {
display: none !important;
}What do I have to change / correct so that it also works on smaller screens such as a laptop?
Many thanks and best regards, DianaMarch 16, 2025 at 1:41 pm #1479468April 16, 2025 at 5:39 pm #1481458Hi Mike, so sorry for the super late reply. This worked like a charm!! Thank you!!! Nevertheless I have one more question concerning the centering of the logo in the middle. If you have al look at his page https://www.schlosswirtschaft-schwaige.de/home-2/
Her is the Title of the Slideshoe centered in the middle. And you can see that the logo is always placed a little bit left of the center. As we woul like to use the fixed Header for this site we would like to fix the logo more exaktly in the middle. If I have a look at the css scrpit (see post before), what do I have to change?
Best regards, DianaApril 16, 2025 at 10:03 pm #1481465The reason for it is that the magnifying icon of the search is on the right ( so to speak : 4 items right – 3 items left.
But first – upload a logo ( your png ) that has not so many space on the right side!
see your jpg : https://www.schlosswirtschaft-schwaige.de/wp-content/uploads/2021/05/Schlosswirtschaft-Schwaige_Logo.jpg
btw: If you insert the jpg as a test, you will see that it is now centered, but visually it is more disturbing; you notice the imbalance to the menu items rather than to the heading in the slider.
April 17, 2025 at 9:38 am #1481488Hi,
Thanks for helping out @guenni007. Did that answer your question @dianaloola73?
Best regards,
RikardApril 17, 2025 at 10:19 pm #1481546Hello …
@Guenni007: Oh no, I didn’t realize that the logo has this RAnd. MANY THANKS for pointing that out.
and
@ Rikard: yes my question is perfectly solved.
Best regards, DianaApril 17, 2025 at 10:23 pm #1481547Hi,
Glad Guenni007 could help, thank you Guenni007, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
Mike -
AuthorPosts
- The topic ‘navigation – Logo centred – Laptop view’ is closed to new replies.