This version is old school.
Please find jQuery plugins on npm.
Center In
jQuery plugin to center an element within another element with fine control over orientation and offset.
Versions
Version
Date
1.0.0
Feb 11, 2014