I have come across some HTML code that I am unable to modify. Instead of using JS/jQuery, I prefer a solution with cross-browser compatible CSS.
The structure of the HTML is as follows:
<ul class="list">
<li class="item">
<a href-"#">Item One</a> |
</li>
<li class="item">
<a href-"#">Item Two</a> |
</li>
<li class="item">
<a href-"#">Item Three</a> |
</li>
</ul>
There are unnecessary pipes in the list that I want to hide, and display only the <a>
elements. I am looking for a better solution than just changing the text color to match the background. Ideally, I would like to achieve something similar to display: none;
.