I am working on a bootstrap layout with two columns. One column contains multiple elements and text, making it quite long, while the other column only has an image. I am trying to center this image vertically within the left column of content. Here is the code snippet:
<div class="row">
<div class="col-sm-6 features">
<div class="col-sm-12">
This column is filled with content and can stretch up to 700px.
</div>
</div>
<div class="col-sm-6 small-column-align">
<img src="inc/img/robot-warrior.jpg" width="717" height="837" alt="" style="max-width:80%; height:auto;"/>
</div>
</div>
Here is my CSS for the "small-column-align" class:
.small-column-align{
display: inline-block;
vertical-align: middle;
float: none;
}
However, despite this code, the image in the right column remains aligned to the top. Any suggestions on how to correct this?