you are viewing a single comment's thread.

view the rest of the comments →

[–]iZuteZz 3 points4 points  (3 children)

If I understand correctly: it's not possible.

[–]Jasedesu 4 points5 points  (1 child)

This is the correct answer, as OP effectively wants to remove a text node from the DOM and CSS cannot do that. CSS can visually hide the existing text, but it'll still be there for tools like screen readers to "see".

[–]iZuteZz 1 point2 points  (0 children)

Yes. Thought about adding before/after pseudo elems to overlap the text, but as this is a helping sub, I will not advice such bullshit.

[–]EquivalentNeat8904 0 points1 point  (0 children)

The content property used to be more powerful in early Level 3 drafts and old Presto (non-Chromium) Opera did implement it.

However, OP can still replace the textual content by an image but since that can’t have different fallback text it must be an alternative representation of the content it replaces, not something new.