Looking to achieve horizontal alignment of div containers. The container on the left (with a blue border) may have a fixed height. The other two containers (with red borders) should be aligned horizontally to the left blue container regardless of its height.
.cursor-pointer {
cursor: pointer;
}
.equal-height {
display: flex;
display: -ms-flex;
}
.border-red {
border-style: solid;
border-width: 2px;
border-color: #FF0000;
}
.border-blue {
border-style: solid;
border-width: 2px;
border-color: #2E2EB8;
}
.border-green {
border-style: solid;
border-width: 2px;
border-color: #00CC00;
margin: 5px;
}
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet"/>
<div class="row border-green equal-height">
<div class="col-xs-6 border-blue">
<div class="panel panel-default">
<div class="panel-heading">Z</div>
<div class="panel-body">
a<br>
a<br>
a<br>
a<br>
a<br>
a<br>a<br>a<br>a<br>a<br>
</div>
</div>
</div>
<div class="col-xs-6">
<div class="border-red">
<div class="panel panel-default">
<div class="panel-heading">X</div>
<div class="panel-body">
c<br>
c<br>
c<br>
</div>
</div>
</div>
<div class="border-red">
<div class="panel panel-default">
<div class="panel-heading">Y</div>
<div class="panel-body">
</div>
</div>
</div>
</div>
</div>