Hi, I'm trying to set a height on an h3 based on the tallest version of it's siblings. That bit's not too tricky. But what I need to do is to create it by only certain siblings.
I have a list that CSS puts into row's of 3. The last li on each row has the class of 'endRow'. What I need to do, i think, is to find the 'endRow', then use each() and go back two elements and check the h3 heights. Anyone know of a simple(ish) way of doing it?
Ta
Update here's a sample of the markup. It's not an equal height for every h3, just in each row
<ul>
<li>
<a href="#"><img src="images/x.jpg" alt=""></a>
<h3><a href="#">Item 1</a></h3>
<div class="productOptions">
<p>Info</p>
<p>More info</p>
<p>Even more info</p>
</div>
</li>
<li>
<a href="#"><img src="images/x.jpg" alt=""></a>
<h3><a href="#">Item 2</a></h3>
<div class="productOptions">
<p>Info</p>
<p>More info</p>
<p>Even more info</p>
</div>
</li>
<li class="endrow">
<a href="#"><img src="images/x.jpg" alt=""></a>
<h3><a href="#">Item 3</a></h3>
<div class="productOptions">
<p>Info</p>
<p>More info</p>
<p>Even more info</p>
</div>
</li>
<li>
<a href="#"><img src="images/x.jpg" alt=""></a>
<h3><a href="#">Item 1</a></h3>
<div class="productOptions">
<p>Info</p>
<p>More info</p>
<p>Even more info</p>
</div>
</li>
<li>
<a href="#"><img src="images/x.jpg" alt=""></a>
<h3><a href="#">Item 1</a></h3>
<div class="productOptions">
<p>Info</p>
<p>More info</p>
<p>Even more info</p>
</div>
</li>
<li class="endrow">
<a href="#"><img src="images/x.jpg" alt=""></a>
<h3><a href="#">Item 1</a></h3>
<div class="productOptions">
<p>Info</p>
<p>More info</p>
<p>Even more info</p>
</div>
</li>