views:

30

answers:

1

So I have this text generated by a javascript plugin.

<a class="className">Text</a> 

a.className {
background: url(images/a-image.png) no-repeat;
}

But the "Text" shows on top of the image... Now... with any respectable web browser, I can use color: rgba(0,0,0,0); to solve the problem, but IE7 doesn't obey standards of any sort.

Any ideas?

+1  A: 
color:transparent;

or

text-indent:-9999px;

or

font-size:0px;
GaVrA
i don't think ie7 supports `color:transparent;`
Knu
So what? Just use text-indent:-9999px; or font-size:0px; then.
GaVrA
the text indent did the trick. =)
DerNalia