🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

Simple jQuery plugin for centering element’s children blocks vertically and horizontally.

Plugins

Documentation

jQuery.centerChild

Simple jQuery plugin for centering element's children blocks vertically and horizontally

Usage

$(".outer").centerChild(".inner"); 

Center every page resize:

$(document).ready(function(){   $(window).resize(function(){     $(".outer").centerChild(".inner");   });  $(window).resize(); }); 

License

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2004

Copyright (C) 2015 Andrey Viktorov [email protected]

Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed.

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

0. You just DO WHAT THE FUCK YOU WANT TO.

You May Also Like