Files
LeafWeb/WebCms/Umbraco_Client/Application/JQuery/VerticalAlign.js
T
2016-11-07 12:56:17 -05:00

8 lines
248 B
JavaScript

(function($) {
$.fn.VerticalAlign = function(opts) {
return this.each(function() {
var top = (($(this).parent().height() - $(this).height()) / 2);
$(this).css('margin-top', top);
});
};
})(jQuery);