Skip to content

Instantly share code, notes, and snippets.

View ewhitten's full-sized avatar

eric whitten ewhitten

  • Twentyeight Health, Inc.
  • Philadelphia, PA
View GitHub Profile
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: ""
});
}