I'm currently working on a Bootstrap website and have reached a section where I want to display text on the left and an image on the right. While I've managed to achieve this layout, I'm struggling with vertically centering the image. Despite adjusting the paddings and margins, the alignment still seems off.
Attached is a visual representation of what I have so far:
https://i.stack.imgur.com/dlkRB.png
Below is the code snippet for this particular section:
HTML
<!-- Section 1 -->
<div class="cssSection cssCenter">
<div class="container">
<div class="row">
<div class="col-sm-7">
<p class="cssInformation">Nam ut tempus lacus, nec porttitor lacus. Integer sit amet lacus risus. Sed pretium justo justo, a faucibus justo pellentesque ac. Nulla lorem ipsum, blandit quis porttitor nec, vestibulum sit amet dui. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Cras semper fermentum risus, a volutpat nisi interdum eu.</p>
</div>
<div class="col-sm-5">
<img class="img-center img-responsive" src="http://placehold.it/300x300">
</div>
</div>
</div>
</div>
CSS
.cssCenter {
text-align: center;
}
.cssSection {
padding: 120px 0 70px;
}
.cssInformation {
font-size: 18px;
}
.img-center {
margin: auto;
}
I would greatly appreciate any guidance on correctly aligning the image vertically with the text on the left. Thank you in advance for your help!