Is there any way I could remove or hide the text (in this case, &ndash) between two elements purely with CSS? Let's say I have no access to the HTML.
This is exactly how the layout is in my case:
<span class="foo">
<span class="bar">sometext</span>
– <!-- hide this! -->
<span class="bar">sometext</span>
</span>
I had a mini-eureka moment, when I though of not(). Simply select foo, and hide everything BUT the spans (also tried not(.bar)). I tried it like this, which unfortunately did not help:
.foo:not(span) {
content: ""; //tried to set their content as nothing
display: none; //and tried to simply hide them
}
I don't think there is a pseudo element that selects nth line? Just like ::first-line
Thanks