Are you using CSS3?
You could use:
ul#navmenuid:first-child {
border-left: 1px;
}
Or you could use (any LI that immediately follows an LI):
ul#navmenuid li {
border-left: 1px;
border-right: 1px;
}
ul#navmenuid li + li {
border-left: 0;
}
Or you could use (any LI that follow an LI, even if not immediately):
ul#navmenuid li {
border-left: 1px;
border-right: 1px;
}
ul#navmenuid li ~ li {
border-left: 0;
}
Lots of options via CSS, really…
Related Posts:
- How to apply a class to the second word in menu list item?
- Override custom menu widget
- Styling child custom menu pages
- How do I prevent the text overflow in menu?
- How to change Twenty Seventeen theme’s navigation bar location?
- How do i style the current menu anchor link’s parent anchor link? [closed]
- Custom Post type menu highlighted in the archive/post
- WordPress – site with 2 stylesheets and more…
- Add nav menu CSS class to body
- Vertical Sidebar Menu Parent and Child not displaying correctly [closed]
- How to insert custom code into wp_nav_menu structure?
- Editing WordPress Nav Menu Walker
- Altering html structure and creating custom menus
- WordPress Admin Bar Covering & Overlapping Fixed Menu Header [closed]
- How to add class to and childs of sidebar widget – WordPress
- Add class active to static menu
- CSS for Created Menu “Active Selected” not working, everything else is!
- How do I add (css) class to a custom link to make it current_page_item
- Side Menu Icon Expandable
- wp_nav_menu not working [closed]
- create a 2 row menu in wordpress
- current-menu-item class in CSS
- Static page to one page- menu inactive items highlighted
- CSS_Menu_Walker not showing on mobile view?
- CSS Classes (optional) on menu is not showing
- Switch from hover to click on Twenty Twelve Menu
- Excluding a media query from specific pages
- How to I know the class or ID of my theme?
- display menu as table layout
- Highlight parent if item from submenu is active
- WordPress + Bootstrap [closed]
- styling wp_nav_menu – horizontal, sub-menu drop downs
- Menu Arrow for Child Element
- How to buid wordpress menu with auto width sub-menu items in dropdown menu without any items sharing one line [closed]
- Trouble hiding menu on single page
- change hover color of specific menu link [closed]
- How to add css to single navigation text? [closed]
- Navigation menu not visible (contrast issue) on home page
- Full screen nav menu block with avada theme
- How do I change/remove styling (top border) on main menu for active page and hovering (Avada Theme)
- Drop Down menu expanded by default (on front page) [closed]
- Odd spacing in Navigation Bar [closed]
- Controlling sub-menu within sub-menu
- Using CSS ID’s and Classes with images in a WordPress Horizontal Menu
- Is there any way to change the CSS class applied to 2nd level sub menu ul’s?
- Styling issue with custom menus and sub menus
- Determining the “current_page” in WordPress Custom Menus
- Making the menu toggled open on mobile devices Illustratr theme
- Im having trouble centering menu items in footer due to “flexbox”
- Menu items not clickable
- How to add CSS class to and and id in a nav menu with code?
- Change hover to onclick on menu
- wp_nav_menu container style args
- Add/remove image from navigation bar
- Stuck while adding bootstrap navwalker class
- How to swap text in menu item back and forth?
- How to create a mobile menu full screen overlay using Understraps Bootstrap 4 theme
- Additional CSS for the nav menu
- How to get rid of the bottom line in the navigation menu via CSS file?
- Active Current Menu – Adding class to child theme
- WordPress menu issue after update
- Adding span to a particular text in an menu item
- Get Sub-Menu Dropdown to Show Over Page Content
- How can I make menu items into two seperate buttons with different functions?
- Responsive Dropdown Menu
- Mark a page of a queried menu as active
- Vertical Menu items shifting to same line when window size increased [closed]
- Adding two same css class on menu item
- Two questions about CSSing inside the menus
- Always show wordpress submenu on responsive header menu
- Menu item hidden behind others
- Active page link not getting class assigned
- Active menu item / category
- jQuery not working when used with wordpress menu
- Making a Custom Menu Sidebar Icon show as Current in css [closed]
- Theme: Twenty Thirteen Mobile Sliding Menu Doesn’t Bump Content Down
- Help with changing style of the extended menu drop down [closed]
- How do i keep my current page menu highlighted on pagination?
- Can’t style custom menu
- Styling Active Links Within WordPress
- Specifying Class style for Menu
- Bought custom navigation menu from codecanyon, how to change feature.php?
- Menu Underline shows without Hover after adding subitems
- How to add or remove borders in navigation menu?
- Problem with float:left – unexpected behavior [closed]
- wp nav menu – highlighting current page not working properly [closed]
- Why there is a gap between and it’s container (A drop down menu in wordpress) [closed]
- Changing color of specific tab of top menu
- Why is my hamburger menu not shown? [closed]
- Keeping my Sub Menu open when hovering on its list items
- How to centre menu items on horizontal nav bar? (e.g. make margins equal) [closed]
- Formatting WordPress Menus (without bullets, inline with text)
- Adding padding above menu
- how to add permalink/slug to wordpress custom link menu item
- How can I only show one responsive menu on mobile devices?
- Active Navigation Class Based on URL on icon
- Twenty-Twenty-Two Child Theme Mega Menu
- change breakpoint widths for divi theme tablet view
- Rename Menu icon in Twenty seventeen theme
- Main Menu Hover is Always White