Equal Heigh of Products
-
Hi,
I created a div to wrap the product images in the carousel.
Since the actual images have various weights, I’m trying to create a constant height for this wrapper. The jquery below work for normal products, but not on the carousel. any idea how I can achieve this?Another solution would be if I can bottom align each product.
Thank youjQuery(document).ready(function(){ jQuery('.products').each(function(){ var highestBox = 0; jQuery('.product-img-wrapper', this).each(function(){ if(jQuery(this).height() > highestBox) { highestBox = jQuery(this).height(); } }); jQuery('.product-img-wrapper)',this).height(highestBox); }); });
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Equal Heigh of Products’ is closed to new replies.