This is the css I have:
<style>
.column {
padding: 5px;
}
.row {
display: flex;
justify-content: center;
}
</style>
And this is the HTML code:
<div class="row">
<div class="column">
<img src="image1.jpg" alt="climbing a mountain" style="width: 100%;" />
</div>
<div class="column">
<img src="image2.jpg" alt="climbing a metal tree" style="width: 100%;" />
</div>
</div>
.column {
padding: 5px;
}
.row {
display: flex;
justify-content: center;
}
<div class="row">
<div class="column">
<img src="https://picsum.photos/200/300" alt="climbing a mountain" style="width: 100%;" />
</div>
<div class="column">
<img src="https://picsum.photos/200/300" alt="climbing a metal tree" style="width: 100%;" />
</div>
</div>
I have tried messing with the width and height options and it didn't work, but maybe I am missing something