Skip to content

24 ways to impress your friends

Vote down?

Sankho Mallik

In response to Andy Clarke’s comments about IE rendering default colors when faced with rgba, I just figured out a work around. Hopefully someone else hasn’t posted it yet; then I’d feel silly!

Basically, in my global link rule (a, a:link, a:visited { yadda }) I had a default color of #fff, and an rgba value right after of (255,255,255,0.8). However, in IE7, it would jump back to purple. Not exactly what I was going for.

Anyway – all I had to do was duplicate the line, so I had two selectors for a, a:link, a:visited { } sitting on top of each other. In the first one, I put the regular hex color – #fff. The second one, I put the rgba. And like magic it worked without choking!

Oh ie, you cheeky bastard you.