flexbox with 3 columms, 2 row, image resize on every cell
- User
flexbox with 3 columms, 2 row, image resize on every cell
Assistant
Here is an example of a flexbox layout with 3 columns and 2 rows where the images resize to fill each cell:
<div class="container"> <div class="row"> <div class="cell"> <img src="image1.jpg"> </div> <div class="cell"> <img src="image2.jpg"> </div> <div class="cell"> <img src="image3.jpg"> </div> </div> <div class="row"> <div class="cell"> <img src="image4.jpg"> </div> <div class="cell"> <img src="image5.jpg"> </div> <div class="cell"> <img src="image6.jpg"> </div> </div> </div>.container { display: flex; flex-wrap: wrap; } .row { display: flex; } .cell { flex: 1; } img { width: 100%; height: 100%; object-fit: cover; }
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.