I have been trying to place an img
in the middle of a fixed height div
but I'm doing something wrong. I tried a few different variants looking at other solutions on SO but I think I am missing something.
Here is my code and code snippet:
// Style
.test-ht {
min-height: 250px;
vertical-align: middle;
}
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet"/>
<div class="container">
<div class="row">
<div class="col-md-3 well test-ht">
<img src="http://placehold.it/350x150" class="img-responsive" />
</div>
</div>
</div>