It looks like you're going to have to implement a Javascript approach. The way I would go about it would be to grab the height of .legs
then apply it to .flight_no
and .price
.
The only other option I can think of would be to "fake it" by giving .flight
a background image that would include however your left and right columns are stylistically different, then repeat-y
in your CSS. If you do that, the sidebars wouldn't actually have to span the same height.
Something like this, using jQuery, will dynamically set your sidebars to the height of the middle column.
$(document).ready(function() {
$(".flight_no, .price").css("height", $(".legs").height());
});
Edit:
Times have changed -- jQuery is not the juggernaut it once was, and we welcomed Flexbox to the world. See this SO page for column-based solutions:
CSS - Equal Height Columns?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…