flex vs flexbox code example

Example 1: flex css end

.item {
  align-self:flex-start | flex-end | center | baseline | stretch;
}

Example 2: flexbox css

.container {
  align-content: flex-start | flex-end | center | space-between | space-around | space-evenly | stretch | start | end | baseline | first baseline | last baseline + ... safe | unsafe;
}

Example 3: css flex

.container {
  display: flex; /* or inline-flex */
}

Example 4: whats the best ways to 3 x 3 perfects squares on a webpage using flexbox

.parent {
  display: flex;
  height: 300px; /* Or whatever */
}

.child {
  width: 100px;  /* Or whatever */
  height: 100px; /* Or whatever */
  margin: auto;  /* Magic! */
}

Tags:

Css Example