jQuery Plugin To Centralize Images Within A Container - centerit

File Size: 87.5 KB
Views Total: 417
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   
jQuery Plugin To Centralize Images Within A Container - centerit

centerit is a super simple jQuery plugin that makes your image always be centered within a specific container regardless of screen size. Ideal for responsive web design.

How to use it:

1. Load jQuery library and the centerit.jquery.js script at the end of the document so the page loads faster.

<script src="//code.jquery.com/jquery-1.12.1.min.js"></script>
<script src="centerit.jquery.js"></script>

2. Just call the function on the image and the plugin will take care of the rest.

$('.image').centerit();

This awesome jQuery plugin is developed by mastersdream. For more Advanced Usages, please check the demo page or visit the official website.