Home › Forums › Support › how to center a specific menu item This topic has 9 replies, 3 voices, and was last updated 3 years, 3 months ago by David. Viewing 10 posts - 1 through 10 (of 10 total) Author Posts January 4, 2023 at 1:22 am #2483072 Heinrich hi team, following your advice in #2468104 i created a block with menu-items. now i want to center the searchbar. then “shop”, “my account icon” and last the “cart icon” should be on the right side. how to do? tks in advance. January 4, 2023 at 1:37 am #2483084 Fernando Customer Support Hi Heinrich, You can try adding this through Appearance > Customize > Additional CSS: @media (min-width: 1025px) { nav .menu-bar-items .gb-container.gb-container-e6734480 { position:absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); } nav .inside-navigation.grid-container { position: relative; } } @media (min-width: 1150px) and (max-width: 1300px) { .menu-bar-items .dgwt-wcas-search-wrapp { max-width: 400px; } } @media (max-width: 1149px){ .menu-bar-items .dgwt-wcas-search-wrapp { max-width: 300px; } } January 4, 2023 at 1:49 am #2483089 Heinrich hi fernando, done… tks a lot for quick help January 4, 2023 at 1:52 am #2483092 Fernando Customer Support You’re welcome, Heinrich! January 7, 2023 at 7:27 am #2486962 Heinrich hi fernando, found a weird behaviour. in customizer the code is working fine, the search-field is centered. but in front-end view chrome, safari and opera not? any idea? January 7, 2023 at 7:47 am #2486982 DavidStaff Customer Support Hi there, can you share a screenshot of how it looks in the Customizer ? January 7, 2023 at 8:17 am #2487135 Heinrich here we go. found, that the css works, when i enter one space in the code, no matter where? January 7, 2023 at 8:37 am #2487150 DavidStaff Customer Support In your CSS you have these comments: /* end of button styling -------------------------/* /* all about menus ------------------------------* / /* formats the primary menu */ Can you delete those, as they are broken. Which will break the CS after them January 7, 2023 at 9:28 am #2487196 Heinrich beginners level :-(( sorry January 8, 2023 at 4:38 am #2487728 DavidStaff Customer Support Easily done 🙂 Glad to be of help Author Posts Viewing 10 posts - 1 through 10 (of 10 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In