just started to learn web design and I am having trouble with using flexbox. I have seen several answers from stack overflow that almost has what I want but apparently it is not working for me.
I want my images to lay out in two columns where the left column is full size, and the right column has two rows stacked on top of each other.
I tried something very similar to another answer I saw on stack overflow, but apparently it is not working with my images.
HTML:
<div class="container">
<div class="column">
<div class="button rowspan">
<a href="https://jason1chiu.github.io/accessibility-measures-met/">
<img src="./assets/images/first-project.webp" class="first-project" alt="first-project">
<div>
<h3>1st Project</h3>
<span>HTML/CSS</span>
</div>
</a>
</div>
</div>
<div class="column">
<div class="button">
<a href="https://jason1chiu.github.io/accessibility-measures-met/">
<img src="./assets/images/first-project.webp" class="new-project" alt="second-project">
<div>
<h3>2nd Project</h3>
<span>HTML/CSS</span>
</div>
</a>
</div>
<div class="button">
<a href="https://jason1chiu.github.io/accessibility-measures-met/">
<img src="./assets/images/first-project.webp" class="new-project" alt="third-project">
<div>
<h3>3rd Project</h3>
<span>HTML/CSS</span>
</div>
</a>
</div>
</div>
</div>
.container {
display: flex;
width: 100%;
height: max-content;
flex-wrap: column wrap;
}
.column {
flex: ;
display: flex;
flex-direction: column;
flex-wrap: wrap;
}
.button {
flex: 1;
flex-wrap: wrap;
}
.button.rowspan {
flex: 2;
flex-wrap: wrap;
}
.first-project {
padding: 20px 0 0 20px;
width: 100%;
}
.new-project {
padding: 20px 20px 0 20px;
width: 100%;
height: 50%;
}
This is what I am trying to achieve:
But it is coming out like this: