:after pseudo selectors are really great for things like icons, decorative arrows, etc. If you really need support for these selectors in IE7 this is a drop-in fix.
There doesn't seem to be a good drop-in patch for
:after anywhere on the web. Dean Edward's ie7-js does an excellent job of adding this, but also adds a lot of other patches that impact performance and often have undesired effects on the rendering of a page.
This is nothing more than a custom build of ie7-js 2.1 beta4 using the included
build.php?ie8 (ie8 compat) with the following modules disabled:
This will patch in
:after support for IE7. Use like so:
<!--[if lt IE 8]> <script src="path/to/ie8.min.js"></script> <![endif]-->
Exact placement in the document shouldn't matter since it attaches to the