make line between menu items shorter and vertically centered
Hi,
I recently used a CSS code by one of your employees on another post to add lines between menu items.
.main-navigation ul li {
border-right: 1px solid #000;
}
.main-navigation ul li:last-of-type {
border-right: none;
}
.main-navigation ul ul li {
border-right: none;
}I was wondering if those lines can be a bit shorter in height?
This is our free support forum. Replies can take several days.
Need fast email support? Get SiteOrigin Premium
Replies
2Also, how can i change the colour of the lines ? i want them orange like my menu items
Hi Justeatorganic
The value in your Custom CSS above, #000, controls the color. You can insert any hexadecimal color value in its place.
To make the lines smaller you’ll need to make the menu items smaller and then add the same space back via the main menu container. Try the following:
.main-navigation ul li a { padding-top: 5px; padding-bottom: 5px; } .main-navigation { margin-top: 10px; margin-bottom: 10px; }Adjust as required.
Replies on this thread are closed.
Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.