I have two div which exist in a container div of both in my html page and I want align all content exist in a sub div corresponding to contents of another div. Is it possible to do this by CSS rules only?
<div class="container">
<div class="subDiv1">
some content here (with 400px height)
</div>
<div class="subDiv2">
some content here (with 270px height)
</div>
</div>
Edit: First content is an image with variable height and second content is a label variable text length and I want align center both of them into same horizontal line vertically.