|File Size:||87.5 KB|
|Official Website:||Go to website|
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.