css
.container{
height: 250px;
padding 10px 0;
}
.col-left{
display: inline-block;
background-image:url("support.png");
height:235px;
width:300px;
}
.col-right{
display: inline-block;
width:600px;
}
html
<div class="container">
<div class="col-left"></div>
<div class="col-right">
<h1>this is my title</h1>
<p>to reach their Potential</p>
</div>
</div>
Question:
I am looking to align the image on the left and text on the right in a single line. Additionally, I want the text to be vertically centered with the image. How can I achieve this?
To display them side by side on the same line.
To vertically center-align the text (appearing in the middle position of the image).