Home › Forums › Support › Help add vertical line | between primary navigation menu items This topic has 4 replies, 3 voices, and was last updated 2 years ago by Fernando. Viewing 5 posts - 1 through 5 (of 5 total) Author Posts August 29, 2022 at 6:05 pm #2327775 Shaun Hi I want to add a vertical line between primary menu items. How can I do this? I don’t want a line before the first menu item or after the last one I want to be able to specify the colour I want to be able to adjust the padding Thanks Shaun August 29, 2022 at 6:12 pm #2327784 YingStaff Customer Support Hi there, Try this: .main-navigation .main-nav > ul > li:not(:first-child) { border-left: 2px solid white; } August 29, 2022 at 7:07 pm #2327812 Shaun Thx Ying August 29, 2022 at 7:28 pm #2327821 Shaun Can I reduce the height of the border to something like 50% vertically centred? August 29, 2022 at 7:37 pm #2327825 Fernando Customer Support Hi Shaun, You can try this CSS instead: .main-navigation .main-nav > ul > li:not(:first-child) :before { content: ""; position: absolute; left: 0; top: 50%; height: 50%; transform:translateY(-50%); background-color: #fff; width: 2px; z-index: 999; } .main-navigation .main-nav > ul > li:not(:first-child) { position: relative; } Author Posts Viewing 5 posts - 1 through 5 (of 5 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In