I have made this with HTML and CSS, container 01 is with contents, on the left side is with texts (number, title and detail on top each other) and on the right side is with a picture. I wanted to swap these texts and picture on container 02, but the picture does not show up. Could anyone help me with this?
.container-num {
display: grid;
grid-template-columns: repeat(2, 1fr);
column-gap: 4rem;
margin-bottom: 10rem;
justify-content: center;
align-items: center;
}
.number-img {
width: 100%;
}
.number {
font-family: 'Noto Serif Display', serif;
font-size: 8.2rem;
font-weight: 900;
color: #eee;
}
.detail-en {
font-family: sans-serif;
line-height: 1.5;
}
<!-- 01 can see correctly-->
<div class="container-num">
<div class="number-text-box">
<div class="number">01</div>
<h3 class="heading-tertiary">title 1</h3>
<div class="detail">
<p class="detail-en">detail</p>
<p class="detail-jp">detail</p>
</div>
</div>
<div class="number-img">
<img src="img/img01.JPG" class="pc number-img" alt="picture1"/>
</div>
</div>
<!-- 02 the pic does not show up-->
<div class="container-num">
<div class="number-img">
<img src="img/img02.JPG" class="pc number-img" alt="picture2"/>
</div>
<div class="number-text-box">
<div class="number">02</div>
<h3 class="heading-tertiary">title 2</h3>
<div class="detail">
<p class="detail-en">detail</p>
<p class="detail-jp">detail</p>
</div>
</div>