Can you help me style the menu list in CSS by adding a separator |
between each element?
I attempted using content: "|"
, but it didn't produce the desired outcome.
The current look of the menu is as follows:
<ul>
<li><a href="...">link</a></li>
<li><a href="...">link</a></li>
<li><a href="...">link</a></li>
<li><a href="...">link</a></li>
<li><a href="...">link</a></li>
</ul>
The current output is:
link link link link
But I am looking for:
link | link | link | link
I have a workaround in JavaScript, but leveraging CSS would be preferred. The menu is dynamically generated and I want to avoid altering its structure.