Podcast Lookup

22 | Replacing Text with CSS

design-code.tips

  • August 9, 2025
  • 4 min
  • Season 1, episode 22
Episode page

About this episode

In this episode, we explore a CSS-only technique for replacing button text—a clever trick using "visibility: hidden" and the ":before" pseudo-element. But is it the best approach? We discuss its accessibility drawbacks and suggest alternatives for a more inclusive design. Tune in to learn when and how to use this method responsibly!

--

Read the full blog post: Replace Text with CSS Only