html - Using jquery equal height but need equal elements inside columns as well -


i'm using jquery equal heights plugin columns designer wants price down add cart button equalized well. possible jquery? i've tried adding existing equal heights i'm not sure i'm doing.

here jquery:

 (function($) { $.fn.equalheights = function(minheight, maxheight) {     tallest = (minheight) ? minheight : 0;     this.each(function() {         if($(this).height() > tallest) {             tallest = $(this).height();         }     });     if((maxheight) && tallest > maxheight) tallest = maxheight;     return this.each(function() {         $(this).height(tallest).css("overflow","hidden");     }); }     })(jquery); 

this way 1 of boxes laid out:

<ul id="phones" class="clearfix"> <li class="phone"> <div class="top"></div> <img src="/_img/2012/accessories_product.jpg" alt="phone" width="192" height="120"/> <h2>blackberry micro-usb vehicle power adapter</h2> <p>product description sed ut perspici atis unde omnis iste natus sit volupt.</p> <div class="btm">    <h3 class="price">$29.99</h3> <p class="modelnumb">model #: 1234567890</p> <a href="#" class="btn btn_addtocart">add cart</a> </div> </li> 

i'm calling on page this:

<script> $j(document).ready(function() { $j("#phones > li.phone").equalheights(412); }); </script> 

i've included image of it's looking now:

enter image description here

if give me appreciate it. in advance.

so, found solution problem i'll answer own question. had bunch of boxes needed same height. @ bottom of each box price, model # , button. above text of course had variable heights , price on down there variable heights box box.

i using jquery plugin equal boxes instead of applying entire box, applied div took care of top part of box including text , stopped @ price. solved problem.

maybe can else out same problem. suggestions.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -