Skip to content

Instantly share code, notes, and snippets.

@ewhitten
Created June 26, 2009 14:39
Show Gist options
  • Save ewhitten/136539 to your computer and use it in GitHub Desktop.
Save ewhitten/136539 to your computer and use it in GitHub Desktop.
if ($.browser.msie) {
var minWidth = parseInt($("div#main").css("min-width").replace(/px/, ""));
$(window).resize(function(e) {
if ($(this).width() <= minWidth) {
$("div#main").width(minWidth);
} else {
$("div#main").css({
width: ""
});
}
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment