Skip to content

Instantly share code, notes, and snippets.

@jimfleming
Created July 26, 2010 17:36
Show Gist options
  • Save jimfleming/490892 to your computer and use it in GitHub Desktop.
Save jimfleming/490892 to your computer and use it in GitHub Desktop.
Applies "zoom: 1" to block elements
var fix_has_layout = function(container) {
var elements = $('*', container || document);
elements.each(function(element) {
if (element.css('display') == 'block')
element.css('zoom', 1);
});
}
$(function() {
if ($.browser.msie) fix_has_layout();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment