Example of adding separators in the wordpress navigation menu

Source: Internet
Author: User

The wordpress navigation menu separator is generally implemented by using the background image. However, this will limit the width of each menu and affect the webpage opening speed. It is also implemented using js. Here, I will introduce you to a simple method-using CSS to implement the wordpress navigation menu separator.

Effect: there are separators between menus. Do not display separators at the beginning or end of the entire menu.
You only need to use the following css code.

. Read_footer_menu li {float: left; font-size: 14px; line-height: 10px; margin-bottom: 15px; padding: 0 8px 0 8px; border-left: 1px solid #888888 ;}
. Read_footer_menu li: first-child {padding: 0 8px 0 0px; border-left: 0px solid #888888 ;}

First, add a left border for li in each menu and set the line height of li to less than the font height,
In the second sentence, use li: first-child to cancel the left border of the first menu.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.