Here is my HTML code:
<div class="tab-pane active" id="product1">
<div class="card">
<div class="card-img-top d-flex align-items-center">
<img class="img-fluid" src="http://via.placeholder.com/150x150/1f1a38/ffffff?text=Image">
<div class="card-body">
<p class="card-text">Hello World</p>
<p></p>
</div>
</div>
</div>
</div>
I managed to display the image and text in the same line, but I am facing an issue: the image appears vertically centered on the left, whereas I want it to be at the top. How can I achieve this?
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.3/css/bootstrap.min.css" rel="stylesheet"/>
<div class="tab-pane active" id="product1">
<div class="card">
<div class="card-img-top d-flex align-items-center">
<img class="img-fluid" src="http://via.placeholder.com/150x150/1f1a38/ffffff?text=Image">
<div class="card-body">
<p class="card-text">Hello World. Lorem Ipsum is placeholder text used in the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
<p></p>
</div>
</div>
</div>
</div>