Если я правильно понимаю, это то, что вы пытаетесь достичь, верно?Вам понадобится немного jQuery http://jsfiddle.net/elclanrs/tJ3kv/
HTML:
<ul>
<li><a href="#">
<h2>item1</h2>
<p>Lorem Ipsum Dolor Sit Amet</p>
</a></li>
<li><a href="#">
<h2>item2</h2>
<p>Lorem Ipsum Dolor Sit Amet</p>
</a></li>
<li><a href="#">
<h2>item3</h2>
<p>Lorem Ipsum Dolor Sit Amet</p>
</a></li>
</ul>
css:
body { margin: 50px; }
ul {
border: 1px solid orange;
overflow: hidden;
display: inline-block;
}
h2 {
font-size: 24px;
font-weight: bold;
}
li {
float: left;
width: 150px;
border-right: 1px solid green;
}
li:last-child { border: 0; }
a {
display: block;
border: 1px solid blue;
margin: 4px;
padding: 1em;
color: black;
text-decoration: none;
}
JQ:
var getMaxHeight = function ($elms) {
var maxheight = 0;
$elms.each(function () {
if ($(this).height() > maxheight) {
maxheight = $(this).height();
}
});
return maxheight;
};
var $elms = $('ul li a');
$elms.height(getMaxHeight($elms));