Log in

View Full Version : h.class:after not working in IE7



RoniM
12-28-2006, 09:27 PM
It should, but can't get it to work. It works fine in FF2.
Any hints?

CSS

h4.yes:after{ font-size:1.1em;font-weight:normal;vertical-align:middle; content:url(../general/nav/_ok.png);}

html

<h4 class="yes">Car access&nbsp;&nbsp;&nbsp;</h4>

RoniM
01-20-2007, 11:11 AM
Can anyone help, still can't get it to work in IE7...

jscheuer1
01-20-2007, 04:36 PM
The :after pseudo class has never worked in IE before v 7. I have no idea if it works now, I tend to think not.

jscheuer1
01-20-2007, 05:02 PM
I just Looked around a bit, and it appears that IE 7 still doesn't support this. Here is a test page, view it in FF (or any browser that complies with this standard) and then in IE 7 - you will see the difference:

http://www.quirksmode.org/css/beforeafter.html