Created
March 20, 2013 01:57
-
-
Save dotjosh/5201732 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function ($) { | |
$.fn.fillheight = function () { | |
return this.each(function () { | |
$(this) | |
.height("100%") | |
.parent().wrapInner("<table style='height:100%;width:100%;margin:0;padding:0;border:0;'/>").end() | |
.siblings().wrapAll("<tr><td style='padding:0;'></td></tr>").end() | |
.wrap("<tr><td style='height:100%;padding:0;'></td></tr>"); | |
}); | |
}; | |
})(jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment