How we designed the perfect straw!

Posted by Adam Humburg on

Change your css to this: (using sibling selector)

#mainMenu ul li ~ li:before {
   content: "|";

The above style will be applied to the elements which have previous sibling elements (li ~ li). Hence this styling will not be applied to the first li element because it doesn't have any previous sibling elements.


Leave a comment

Please note, comments must be approved before they are published