Return to Snippet

Revision: 27892
at June 26, 2010 02:08 by vagrantradio


Updated Code
//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");
  }
});

Revision: 27891
at June 26, 2010 02:05 by vagrantradio


Updated Code
//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");
  }
});

Revision: 27890
at June 26, 2010 02:04 by vagrantradio


Initial Code
//insteaf of this:
#box:after {stuff}
#box:before {stuff}

//do this
$(document).ready(function() {
  if ($.browser.msie && $.browser.version <= 7) {
    $("#box").after("stuff after");
    $("#box").before("stuff before");
  }
});

Initial URL

                                

Initial Description

                                

Initial Title
jQuery IE6 & IE7 Pseudo-Selector Workaround

Initial Tags
css, browser, ie6

Initial Language
jQuery