JSFiddle - React, Tailwind, and code Playground

HTML

<div class="container">
<div class="imgwrapper"><img src="http://placehold.it/300x200" /></div>
<div class="imgwrapper"><img src="http://placehold.it/200x250" /></div>
<div class="imgwrapper"><img src="http://placehold.it/200x200" /></div>
<div class="imgwrapper"><img src="http://placehold.it/300x200" /></div>
</div>
<div style="width:598px;text-align:center;border:1px solid #000;margin:10px">600px</div>

CSS

.container{
    width: 500px;
    height: 120px;
    margin: 10px;
    background-color: #000;
    
    display: flex;
    
    
    display: box;
    box-orient: horizontal;
    box-pack: center;
    box-align: center;
}

.imgwrapper {
    -webkit-box-flex: 1;
    -moz-box-flex: 1;
    box-flex: 1;
}

img{
    max-width: 100%;
    height: auto;
    display:block;
}