css grid vs flexbox

CSS
/* Answer to: "css grid vs flexbox" */

/*
  Grid is much newer than Flexbox and has a bit less browser
  support. That’s why it makes perfect sense if people are
  wondering if CSS grid is here to replace Flexbox.

  To be exact:
  1. Grid can do things Flexbox can’t do.
  2. Flexbox can do things Grid can’t do.
  3. They can work together: a grid item can be a flexbox container.
  A flex item can be a grid container.

  For more information on this topic, go to:
  https://css-tricks.com/css-grid-replace-flexbox/
*//* Answer to: "flex grid css" */

/*
  Grid and flexbox. The basic difference between CSS Grid Layout
  and CSS Flexbox Layout is that flexbox was designed for layout
  in one dimension - either a row or a column. Grid was designed
  for two-dimensional layout - rows, and columns at the same time.

  For more information on how to use this, go to:
  https://www.w3schools.com/css/css3_flexbox.asp
*/
Source

Also in CSS: