I currently have a setup with four divs within a container structured as follows:
<div class="container">
<div class="block"></div>
<div class="block"></div>
<div class="block"></div>
<div class="block"></div>
</div>
My goal is to align the first and last divs to the edges of the screen, while centering only the two middle divs. Despite my attempts with display inline-block and margin adjustments, I am facing difficulty in achieving this layout. Any guidance on how to accomplish this would be greatly appreciated!
Many thanks,