Seeking advice as a beginner in HTML/CSS on how to create a 3-row single column layout with images and text next to each other. Tried using the flexbox model for the text column but struggling to align them properly. Any suggestions on a better approach for a sidebar column with images and text aligned next to each other?
.imagecards {
width: 450px;
height: 900px;
display: flex;
flex-direction: column;
justify-content: space-between;
margin: auto;
}
.sidebarcontainer img {
height: 250px;
width: 250px;
padding: 10px;
margin: 20px 30px 0 0;
object-fit: contain;
align-self: flex-start;
}
.sidebarcontainer1 {
padding: 10px;
background-color: rgb(228, 228, 228);
}
.sidebarcontainer1 img {
height: 250px;
width: 250px;
}
`.sidebarcontainer_text` {
flex: 1 1 auto;
align-items: left;
text-align: left;
}
<div class="imagecards">
<div class="sidebarcontainer">
<img src="resources/images/information-orientation.jpg">
<div class="sidebarcontainer_text">
<h1>Fisma: Design and Prototype</h1>
<p>Designer Showcase of new Prototype Product</p>
</div>
</div>
<div class="sidebarcontainer">
<img src="resources/images/information-orientation.jpg">
<div class="sidebarcontainer_text">
<h1>Fisma: Design and Prototype</h1>
<p>Designer Showcase of new Prototype Product</p>
</div>
</div>
<div class="sidebarcontainer">
<img src="resources/images/information-orientation.jpg">
<div class="sidebarcontainer_text">
<h1>Fisma: Design and Prototype</h1>
<p>Designer Showcase of new Prototype Product</p>
</div>
</div>
</div>