So I want to have a block of text centered next to an image, and I tried to use margin auto 0px;
but it nothing. I also don't understand why the text starts at the bottom of the container instead of the top.
Here is the code:
.feature {
margin: 5px 0px;
}
.feature img {
display: inline-block;
width: 49%;
}
.feature .feature-detail {
display: inline-block;
width: 49%;
margin: auto 0px;
}
<div class="feature">
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/b/b3/Soylent.svg/800px-Soylent.svg.png">
<div class="feature-detail">
<h3>Feature Title</h3>
<p>Feature Description</p>
</div>
</div>