Using :before for more accessible CSS sprites

A quick tip for improving the accessibility of CSS sprites: instead of using sized backgrounds, use the :before pseudoelement. Sprites added with :before will still show up in Windows high-contrast mode, whereas backgrounds are eliminated.

Comments are closed here.