Skip to content

Instantly share code, notes, and snippets.

@jwreagor
Forked from ewhitten/jquery min-width
Created June 26, 2009 15:11
Show Gist options
  • Save jwreagor/136554 to your computer and use it in GitHub Desktop.
Save jwreagor/136554 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