I am looking to achieve a design similar to this: https://i.sstatic.net/MxzIS.png
The layout should remain consistent across mobile devices:
featuring a 100% width block with 2 images and buttons below it.
Images should span the full width of the block.
The current code has excessive spacing between blocks, causing issues at lower resolutions.
.container {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
background: #e2eaf4;
padding: 10px;
flex-direction: row;
}
.child {
display: inline-block;
font-family: "Open Sans", Arial;
font-size: 20px;
color: #FFF;
text-align: center;
background: #3794fe;
border-radius: 6px;
padding: 20px;
margin: 12px;
}
.child:first-child {
width: 100%;
}
.link {
background-color:white;}
<div class="container">
<div class="child">Child</div>
<div class="child"><img src="https://helpx.adobe.com/content/dam/help/en/stock/how-to/visual-reverse-image-search/jcr_content/main-pars/image/visual-reverse-image-search-v2_intro.jpg"width="200" height="200" >
<div class ="link"><a href = "#">link </a> </div>
</div>
<div class="child"><img src="https://helpx.adobe.com/content/dam/help/en/stock/how-to/visual-reverse-image-search/jcr_content/main-pars/image/visual-reverse-image-search-v2_intro.jpg" width="200" height="200">
<div class ="link"><a href = "#">link </a> </div>
</div>
</div>