Quantcast
Channel: Active questions tagged flexbox - Stack Overflow
Viewing all articles
Browse latest Browse all 1675

Creating responsive flexbox grid with equal items [closed]

$
0
0

I have a problem with matching all my requirements regarding boxes in flexbox. Assume I have 3 breakpoints.

My requirements:

  1. On first breakpoint, boxes should be in one column, on second breakpoint in two columns, in third - three columns
  2. All items should always have equal width
  3. All rows should have equal amount of boxes (box must not ocupy two or three columns)
  4. Gap should be 20px

enter image description here

I tried with flex-basis, calcs etc but I am not able to match all 3 requirements at once.


Viewing all articles
Browse latest Browse all 1675

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>