I'm currently working on constructing the layout displayed in the image below. The aim is to have the image on the left with a fixed width, while the text on the right adjusts to the available width.
Furthermore, the objective is for these items to stack in a grid layout.
https://i.sstatic.net/jd5X1.png
I'm encountering challenges in aligning the items correctly, here's the current setup:
.feature-items {
background: #CCC;
box-sizing: border-box;
width: 100%;
padding: 0px;
}
.feature-item--wrapper {
background: #efefef;
display: inline-block;
flex-direction: row;
box-sizing: border-box;
width: 336px;
flex-wrap: wrap;
align-items: center;
justify-content: center;
}
.img-wrapper {
box-sizing: border-box;
width: 88px;
padding-right: 24px;
}
.img-wrapper,
img {
width: 64px;
height: 64px;
}
.text {
box-sizing: border-box;
padding-top: 24px;
padding-bottom: 24px;
flex: 1 1 auto;
}
<div class="feature-items">
<div class="feature-item--wrapper">
<div class="img-wrapper">
<img src="http://clipground.com/images/minecraft-server-clipart-64x64-9.png" width="64">
</div>
<div class="text">
<strong class="feature-title">Title</strong>
<p class="feature-description">This is a sentence description, hello world.</p
</div>
</div>
<div class="feature-item--wrapper">
<div class="img-wrapper">
<img src="http://clipground.com/images/minecraft-server-clipart-64x64-9.png" width="64">
</div>
<div class="text">
<strong class="feature-title">Title</strong>
<p class="feature-description">This is a sentence description, hello world.</p
</div>
</div>
<div class="feature-item--wrapper">
<div class="img-wrapper">
<img src="http://clipground.com/images/minecraft-server-clipart-64x64-9.png" width="64">
</div>
<div class="text">
<strong class="feature-title">Title</strong>
<p class="feature-description">This is a sentence description, hello world.</p
</div>
</div>
<div class="feature-item--wrapper">
<div class="img-wrapper">
<img src="http://clipground.com/images/minecraft-server-clipart-64x64-9.png" width="64">
</div>
<div class="text">
<strong class="feature-title">Title</strong>
<p class="feature-description">This is a sentence description, hello world.</p
</div>
</div>
</div>
Any assistance on where I might be going wrong would be greatly appreciated. Thank you