Home › Forums › Support › How to have the MENU align center but from a exacly piont in the menu? This topic has 5 replies, 4 voices, and was last updated 3 years, 4 months ago by David. Viewing 6 posts - 1 through 6 (of 6 total) Author Posts November 24, 2020 at 4:31 am #1543949 Robert Hi, How are You? I have on my website the align in the MENU: center. The first 3 MENU elements are in polish, and the last 3 in germany. – between them is an element: “|” It would be ideal if this element “|” would be the exacly center point from the menu… Kr Robert November 24, 2020 at 10:24 am #1544821 LeoStaff Customer Support Hi there, The link to your site isn’t working for me. Can you double check? Let me know 🙂 November 24, 2020 at 11:24 am #1544955 Robert Hi and now? thx Robert November 24, 2020 at 2:42 pm #1545182 ElvinStaff Customer Support Hi, You can try this CSS: /* flex menu */ .main-nav ul{ display: flex; } /* Centered divider */ ul li.menu-item:nth-child(4) { position: absolute; left: 50%; transform: translate(-50%); } /* add margin separator between the 2 menus */ ul li.menu-item:nth-child(5) { margin-left:auto; } This is pretty tricky to do without having issues in making the menu items visually balanced. November 24, 2020 at 11:37 pm #1545537 Robert Hi Thx for this code – the element “|” is now perfect in the middle. One thing more: its passible to move the 3 MENU elements from the left more to the right, to the element “|” ? – now between “KONTAKT” and “|” is too much space… Kr Robert November 25, 2020 at 6:25 am #1546188 DavidStaff Customer Support Hi there, try this instead. Remove the Menu item that contains the | and then change the CSS for this: @media(min-width: 1024px) { .main-nav ul { display: flex; justify-content: center; } .main-navigation .main-nav>ul li { min-width: 126px; } .main-navigation .main-nav>ul li:nth-child(2) { min-width: 296px; } .main-navigation .main-nav > ul li:nth-child(3) a::after { content: '|'; margin-left: 40px; } } Author Posts Viewing 6 posts - 1 through 6 (of 6 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In