Reputation: 6269
I tried to add an image using :before in css. It worked fine in firefox 4 but when I tested it in IE 7,it didn't display me anything..How can I solve this issue in IE7?
Upvotes: 0
Views: 170
Reputation: 490163
IE7 doesn't support the :before
pseudo class.
There is nothing you can do with CSS alone to make it work. You could possibly use a background-image
on the li
element itself.
You could mimic it with JavaScript.
Upvotes: 1
Reputation: 92803
@vimal; :before
is css2.1 property which is not supported by ie7
.
Check these for more: http://css-tricks.com/9189-browser-support-pseudo-elements/
http://www.quirksmode.org/css/contents.html
Upvotes: 1