@jamby4546
Posted
I think the general practice is that if you are only arranging boxes in the x direction, to use flexbox. If you have a layout that needs boxes arranged in the x AND y directions, use CSS grids.
But honestly I prefer CSS grids every time even for a single line of boxes because I feel like it is easier to change if the design changes later on and it is more flexible. I am still a beginner though, its just what is easier for me to think about! It probably comes down to preference but I am not sure
@JeanetteW
Posted
@jamby4546 Hi Jamby, thanks for the reply. Your explanation of when to use flexbox and when to use grids does make sense.
I also prefer grid. Just feels like placing elements is easier.