css flex

CSS
/* 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
*//* use this if you want to center stuff like in your div */
.flexbox_card {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }.container {
	display: flex;
}

Anything within the container that is a block level element is
now turned into an inline element only taking up the space of 
its actual content placing all items side by side instead on
individual rows./* Flex */
.anyclass {
	display:flex;
}
/* row is the Default, if you want to change choose */
.anyclass {
	display:flex;
 	flex-direction: row | row-reverse | column | column-reverse;
}

.anyclass {
  /* Alignment along the main axis */
  justify-content: flex-start | flex-end | center | space-between | space-around | space-evenly | start | end | left | right ... + safe | unsafe;
}.container {
  display: flex; /* or inline-flex */
}/* Flex */
.anyclass {
	display:flex;
}
/* row is the Default, if you want to change choose */
.anyclass {
	display:flex;
 	flex-direction: row | row-reverse | column | column-reverse;
}

.anyclass {
  /* Alignment along the main axis */
  justify-content: flex-start | flex-end | center | space-between | space-around | space-evenly | start | end | left | right ... + safe | unsafe;
}
Source

Also in CSS: