I am using this on my nav menu to separate the list items
nav li + li:before{
content: " | ";
}
This puts a bar between each list item, it doesn't put the bar before the first element. And using the :before pseudo selector, it doesn't put one at the end. (as suggested here Separators For Navigation)
However, I want to prevent this from carrying through to child list items.
e.g. nav ul li ul li
I've tried content:none;
and content:"";
on the child but they still display in the sub-menu.
Help please!