Files
Umbraco-CMS/umbraco/presentation/umbraco_client/Application/JQuery/VerticalAlign.js
T

8 lines
255 B
JavaScript
Raw Normal View History

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