I think that both color: transparent and background size require CSS3. I could not hide the text without using jQuery to "disable it". Although I read that "line-height: 0" can also work. In any case, using jQuery you can also move the text to a tooltip. This is my CSS:
.field-validation-error { background-image: url('/Content/error.png'); background-repeat: no-repeat; display: inline-block; width: 22px; height: 22px; margin: 0; padding: 0; vertical-align: top; }
And this is my jQuery code:
$(document).ready(function () { $('.field-validation-error').each(function () { $(this).attr('title', $(this).html()); $(this).html("") }); });
I guess you can do a lot more fancy things than a tooltip, though the first time you use jQuery.
source share