次のように、親コンテナー内に2 つの子<div>
要素があり<div>
ます。
<div class="row">
<div class="item">
<p>Sup?</p>
</div>
<div class="item">
<p>Sup?</p>
<p>Wish that other guy was the same height as me</p>
</div>
</div>
次のCSSを試しました:
.item {
background: rgba(0,0,0,0.1);
display: inline-block;
}
.row {
border: 1px solid red;
}
div.item
両方の子供 ( ) を一番背の高い子供の身長にするにはどうすればよいですか?
jsFiddle: http://jsfiddle.net/7m4f7/