/ Published in: jQuery

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
//instead of this CSS: #box:after {stuff} #box:before {stuff} //do this with jQuery $(document).ready(function() { if ($.browser.msie && $.browser.version <= 7) { $("#box").after("stuff after"); $("#box").before("stuff before"); } }); //or $(document).ready(function() { if ($.browser.msie && $.browser.version <= 7) { $("#box").insertAfter("stuff after"); $("#box").insertBefore("stuff before"); } });
Comments
