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

packed-img-strip is a jQuery responsive equal height plugin which automatically stretches and shrinks img or figure elements (with varying width and height) to make them have the same height.

Equal-Height

Documentation

packed-responsive-strip

A jquery plugin to pack various height elements, currently supports images or figures, into a single, equal height strip.

Use:

Include the js file

Wrap your images or figures in a div with the class "pack":

<div class='pack'>   <img src="http://via.placeholder.com/600x150"/>   <img src="http://via.placeholder.com/150x500"/>   <img src="http://via.placeholder.com/300x300"/> </div> 

Incluce jquery and the js file, then call the plugin on your "pack" div after images have loaded:

<script src="https://code.jquery.com/jquery-3.2.1.min.js"</script> <script src="jquery-packed-img-strip.js"></script> <script> $(window).on('load', function() {       $("div.pack").pack(); }); </script> 

Working Example:

https://rawgit.com/tylerecouture/packed-responsive-strip/master/test.html


You May Also Like