→ Code

//Cross Browser CSS Image Replacement on Inputs

Disclaimer: I know image replacement isn’t ideal but sometimes we have to do it, plus it does offer up the opportunity for rollover effects using sprite backgrounds without javascript (at least in IE7+).

Here’s a quick solution to the problem of using regular CSS image replacement on inputs. The text-indent method fails in IE so we need a slightly different approach.

Continue reading…