With CSS 3, you can use the :last-child or :last-of-type selectors:
.is-frontend #content-holder .semplice-navbar nav ul li:last-child {
border-right: 1px solid #000000;
}
However, you could flip this around to make it more backwards compatible using :first-child (which is available in CSS2):
.is-frontend #content-holder .semplice-navbar nav ul li {
border-left: 1px solid #000000;
}
.is-frontend #content-holder .semplice-navbar nav ul li:first-child {
border-right: none;
}
Related Posts:
- How to buid wordpress menu with auto width sub-menu items in dropdown menu without any items sharing one line [closed]
- How to move parent li to end of child ul
- How do i style the current menu anchor link’s parent anchor link? [closed]
- Where is definied the theme location for the main menu in a WordPress template?
- How to insert custom code into wp_nav_menu structure?
- Altering html structure and creating custom menus
- Grey out nav buttons unless is_user_logged_in()
- Static page to one page- menu inactive items highlighted
- How Do I Add Images To Main Navigation Menu
- display menu as table layout
- Highlight parent if item from submenu is active
- Menu Arrow for Child Element
- How to add css to single navigation text? [closed]
- Menu Custom Data Attributes
- Full screen nav menu block with avada theme
- Default Nav Highlight
- Odd spacing in Navigation Bar [closed]
- Some doubts about WordPress handle the horizontal main menu visualization
- I’m trying to remove a duplicate menu, which only appears on the homepage?
- Get Each Menu Nav Label of Menus in HTML tag
- wp_nav_menu container style args
- Add/remove image from navigation bar
- WordPress Menu Navigation links not working
- Additional CSS for the nav menu
- Disable Top Nav Bar on Mobile
- Making my main menu a hamburger menu on all platforms
- Responsive Dropdown Menu
- Active page link not getting class assigned
- individual images as navigation design TwentyTen
- Site navigation sits unstyled for a second on page reload [closed]
- Is there an easy way to replace a custom menu link with a page or post?
- Add Javascript to WordPress Menu
- How do I add nested categories to drop-down menu in twenty-eleven?
- How to get a different mobile menu than desktop menu in the twentytwelve child theme
- HTML Bootstrap navigation menu to WordPress menu using wp_nav_menu
- WordPress Export Import Site Navigation Menu
- Bar separated navigation by extending Walker_Nav_Menu
- Replace menu tag with tag
- How to style current page menu item when using a walker
- How to highlight the current page in the nav menu?
- BuddyPress – How to add logout in nav menu
- Nav Walker current menu item not displaying
- Navigation (wp_nav_menu) refuses to nest within parent element
- Add custom menu item metabox in Navigation Settings
- Get admin menu link
- Hide Menu Unless Logged In
- Highlight another nav item
- How to change theme header to support multiple nav menus?
- How to have the Header show different content on different pages?
- Programmatically add existing pages and subpages to Appearance Menu
- walker – 0 level on submenu formatting
- CSS_Menu_Walker not showing on mobile view?
- wp_nav_menu() doesn’t work
- Remove nav menu item by script
- Make a navigation menu in the same post [duplicate]
- Get menus created with menu editor?
- How to I know the class or ID of my theme?
- How to create a menu with pages and post categories?
- remove specific classes from menu items
- Missunderstanding of WordPress menus
- How to add schema.org SiteNavigationElement and property URL to navbar?
- Theme Location empty
- how to remove description from menu buttons?
- Adding toggle-able element after menu item
- Remove a class from a using Walker
- Make two bootstrap menus collapse into one dropdown
- wp_bootstrap_navwalker Fatal Error
- Why I obtain different visualization when I run the website on my local machine and on remote server?
- Costum walker with sub menu item count
- How do I add 3rd level of dropdowns to wp_nav_menu array?
- Why nav_menu_css_class doesn’t work with apply_filters?
- adding pages in underscores.me theme
- WordPress site hamburger menu toggle not working
- Can I now add a class in the anchor of my menu item with WordPress 5.4?
- WordPress + Bootstrap: Replace primary navigation menu on mobile?
- How to work with a custom theme that someone else created before me? (details below)
- Multi-Level Nav Bar
- Change markup for just 2nd list element in custom Walker menu
- Custom CSS is overwritten by WordPress?
- Different HTML markup for similar menus
- Add newsletter signup element to navigation bar
- All custom links suddenly lack href attributes
- Mark a page of a queried menu as active
- wp_nav_menu not selecting teh correct menu
- Menu item hidden behind others
- Hide menu theme location for certain capabilities?
- Add a Submenu from Another Submenu in a Custom Theme
- Highlighting Main Navigation Menu With Two or More Class Matches
- Making a Custom Menu Sidebar Icon show as Current in css [closed]
- Remove from wp_nav_menu() wordpress
- Styling Active Links Within WordPress
- Second tier sidebar navigation
- Add custom ID to wp_nav_menu list items
- Make title bar collapse when scrolling
- Site pages show the page title under navigation bar
- Keeping my Sub Menu open when hovering on its list items
- How to change the markup created by menu item only on chosen items?
- Navigation menu, remove item from desktop
- Wrapping my ‘s with
- How can I only show one responsive menu on mobile devices?