Replacing text with CSS is not something I use often, but there are some specific cases where it comes in handy. If you have the ability to change text on the server-side, I always recommend that first. CSS text replacement should be a last resort, as that is not what CSS is intended for.
If you’re working within the limitations of a CMS, or you don’t have the ability to change your markup, CSS text replacement might be your only option.
There are a few ways to handle it. Let’s walk through the options, and explain how they work, and why other methods fail.