I've been struggling for a while to properly center this image within the row that contains the div with the image. Here is the HTML code I am using:
<div class="row">
<div class="col-md-9">
<div class="col-md-12">
<h3 style="text-transform: uppercase"><strong>Title</strong></h3>
<p>Text</p>
<br>
<h3 style="text-transform: uppercase"><strong>Title</strong></h3>
<p>Text</p>
<br>
<h3 style="text-transform: uppercase"><strong>Title</strong></h3>
<p>Text(2 male, 1 female, 3 mixed characters)</p>
</div>
</div>
<div class="col-md-2">
<img class="img-full center-block" src="img/img.jpg" alt="">
</div>
</div>
I have tried various suggestions but none of them seem to work. https://css-tricks.com/centering-css-complete-guide/
Since this is a responsive website, I do not know the height of the element. I attempted to use translate to move the image, which resulted in this:
https://i.sstatic.net/4rt0w.jpg
Using flexbox caused issues with my mobile design as the columns did not collapse correctly, resulting in this:
https://i.sstatic.net/12uGE.jpg
I also tried the following code:
.vcenter {
display: inline-block;
vertical-align: middle;
float: none;
}
However, it did not yield any results:
https://i.sstatic.net/apCCu.jpg
At this point, I feel like I have exhausted all known solutions. Does anyone have any ideas on how to resolve this issue? I suspect it may be related to the way I have structured my columns within columns, but changing that breaks my overall design...
Edit: This is the desired look: