Skip to content

Instantly share code, notes, and snippets.

View harpalsingh's full-sized avatar

Harpal Singh harpalsingh

  • Sage
  • UK \ SageOne UI Development Team \ Simon O'hara
View GitHub Profile
@harpalsingh
harpalsingh / IE7_zindex_fix_for_parent
Created November 9, 2012 14:23
IE7 Issue when reusable parent elements have a position attribute and new dynamic content is required to sit on a higher z-index. This is presents itself when say you use the same two divs with a position attribute of relative but no z-index and then the
if($.browser.msie && parseInt($.browser.version, 10) == 7) {
this.$target.closest('.className').css('z-index','1');
};