Category: jQuery

Simple jQuery plugin for Vertically Centering

Simple jQuery plugin for Vertically Centering

Came across this while needing to vertically center a div within another div: 1234567891011(function ($) { // VERTICALLY ALIGN FUNCTION $.fn.vAlign = function() {     return this.each(function(i){     var ah = $(this).height();     var ph = $(this).parent().height();     var mh...