0

I have seen several kind of similar questions, but none answers my question.

I am trying to make a questionnaire with multiple choice. I have the choices styled in css grid. If I have a grid track with 3 columns, how can I dynamically change the number of columns to 2 if content in one of the columns cannot fit in one of the three columns?

I have tried this among other solutions but it did not work.

Here is my current implementaion

EDIT: It is not a must I do it with css grid. A solution using Flexbox would still be great.

YulePale
  • 6,688
  • 16
  • 46
  • 95
  • 1
    so why are you using the grid for this, I have seen your code, You can achieve this by flex as well. is it mandatory to use GRID? – Atul Rajput May 03 '20 at 19:08
  • @Atul no it is not mandatory to use grid. I can also use flex. Could you please show me how I could do it with flex? Thank you. – YulePale May 04 '20 at 02:16

0 Answers0