This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

make line between menu items shorter and vertically centered

10 years ago · Last reply by Andrew Misplon 10 years ago

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?

URL: http://justeatorganic.com.au/

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

2
  1. justeatorganic 10 years, 4 months ago

    Also, how can i change the colour of the lines ? i want them orange like my menu items

  2. Andrew Misplon Staff 10 years, 4 months ago

    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.

Have a different question or issue?

Start New Thread