Can someone assist me with CSS flexbox for responsive screens?
Below is the layout of the flex container and items on a desktop screen: https://i.sstatic.net/AXBHw.png
The container has flex and flex-wrap properties applied, with each column having flex: 1 1 auto;
.
For mobile screens, I want it to look like this: https://i.sstatic.net/SAVlJ.png
I used flex: 0 1 50%
to show 2 columns in one row, but I have two specific requirements:
**1. (required) Keep the orange items next to each other regardless of screen size.** 2. (optional) Allow the possibility of displaying 2 columns in 1 cell (like the green and purple items in a single cell).
If anything is unclear or if you need more information, please feel free to ask me to clarify.