Center an element on the Screen

jQuery.fn.center = function () { this.css(“position”,”absolute”); this.css(“top”, ( $(window).height() – this.height() ) / 2+$(window).scrollTop() + “px”); this.css(“left”, ( $(window).width() – […]

Read More