Is there a way to resize an image automatically to fit inside a container with a blank background? Currently, the structure looks like this:
<div class="row">
<div class="col-md-3">
<div class="panel panel-primary">
<div class="panel-heading">
<div class="row">
<img src ="haha.png"/>
</div>
</div>
</div>
</div>
</div>
I need a container where the image can be resized automatically to fit inside.