-
AuthorPosts
-
February 1, 2016 at 3:13 pm #575800
Hi Kriesi team,
we are currently working on our new comany’s site and we are experiencing problems with our main navigation on top – We tried setting it up with additional CSS code in our CSS file, still we fail to have the top navigation being perfectly centered and the sub menus being perfectly alligned underneath the main menu entries. All of the sub menus appear a little bit off, either a few pixels too far to the right, or a few pixels too far to the left.
As you can see we are nearly there – still we are unable to perfectly allign those items, so the appear symmetrical.The link to our homepage can be seen in the private content section, aswell as the link to our Stylesheet.
We are looking forward to your help!
Thanks in advance
P3 SystemsFebruary 1, 2016 at 11:50 pm #576117Hey P3Systems!
We would love to help you but your website is not opening it re-directs to an IP address http://10.14.**.** and say’s website not available please get back to us when your site is up and let us know the issue with a screenshot exactly what you want so we can help you better.
Best regards,
VinayFebruary 2, 2016 at 10:19 am #576337Hey Vinay
the site was down for maintenance – it’s back online now!
Thanks for your help.
February 3, 2016 at 5:55 am #576882Hi,
Site is accessible now, thanks. I’m not sure exactly what you are trying to do though, could you post a screenshot highlighting your intentions so that we can gain a better understanding please?
Regards,
RikardFebruary 3, 2016 at 10:25 am #577010
We want the “Know How” menu entry to be centered directly underneath our logo – and all the other elements to be perfectly symmetrical.
Also we noticed, the offset of the submenu differs for each element, some submenus are a few pixels more alligned to left than the others. We did not find a solution to modify and move those single entries seperately.
- This reply was modified 8 years, 9 months ago by P3Systems.
February 3, 2016 at 11:08 am #577038Hi!
We are working on your ticket please wait while we update the results here soon.
Regards,
VinayFebruary 3, 2016 at 11:16 am #577042perfectly symmetrie is in my opinion not possible if you have words (your links) with different wordlength !
Products – P3 – perhaps you can give the links not a variable width – set to a defined width in which all words have enough place not to overflow (or break)the shift of the submenu you can correct with the padding:
#top .av-main-nav ul a { padding: 8px 15px; }
play with the 15px
- This reply was modified 8 years, 9 months ago by Guenni007.
February 3, 2016 at 11:22 am #577048Hey!
Did you find a work around? The menu looks centered please see screenshot attached…
Somewhere in the styles you have set width and margins to the menu
.menu-item-top-level { width: 6.67%; margin: 0 6.62%; }
You can try the below code if it don’t look right please remove the customizations you have made and try this again.
.av-main-nav { display:flex; justify-content: space-between; }
Best regards,
VinayFebruary 3, 2016 at 4:29 pm #577160Thank you both for your help –
I just added your code to our page and it looks like this:
it seems like the justify-content: space-between; is actually not working – Still after doing some research, the flex-content option might be what we are looking for.
February 3, 2016 at 6:07 pm #577216on my test environment it seem to be the perfect mid – even if the words are totaly different wordslength.
the ul element sits perfect in the center – but your wordlength of navigation is asymetrical.i highlighted ul that you can see it is perfect mid
why don’t you correct your logo to exactly above “know-how”
- This reply was modified 8 years, 9 months ago by Guenni007.
February 3, 2016 at 11:08 pm #577408Hey!
@Guenni007 thanks for sharing your tip :)
@P3Systems , please share the admin login details in private content and permission to modify/add CSS so we can help you better.Cheers!
VinayFebruary 4, 2016 at 10:19 am #577664I just added your credentials to the private content sections – thanks again for your help!
February 8, 2016 at 6:22 am #579363Hey!
Is the number of menu items limited to only 5? If yes then you can apply a width property to the menu list elements:
.av-main-nav > li { width: 20%; }
Cheers!
IsmaelFebruary 8, 2016 at 11:20 am #579494Hey Ismael –
this actully makes the top menu perfectly centered – sadly, the submenu is not moved and still badly positioned, if I then move the submenus by 120pixel, the sub menu fits perfectly for menu entry 1 (Products) and 3 (Know-How) – but is completely broken for menu item 2 (Services).
By now I didn’t find a solution to give each submenu a seperate margin, to align them perfectly.
I also noticed, that it’s impossible to access the WordPress Admin from WWW as it’s currently blocked by our server for security reasons – We are currently trying to find a way to give you access to our WordPress Admin so you can add some custom css.
February 10, 2016 at 11:28 am #580999Hi!
alright, let us know when you are ready so we can take a deeper look into it.
Cheers!
Andy -
AuthorPosts
- You must be logged in to reply to this topic.