flexbox-align

by Wen Zhu

HTML

<div>
  <button>Smile</button>
  <button>Laugh</button>
  <button>Wink</button>
  <button>Shrug</button>
  <button>Blush</button>
</div>

CSS

html {
  font-family: sans-serif;
}
body {
  width: 70%;
  max-width: 960px;
  margin: 20px auto;
}
button {
  font-size: 18px;
  line-height: 1.5;
  width: 15%;
}
div {
  height: 100px;
  border: 1px solid black;
}
/* Add your flexbox CSS below here */
div {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

button:first-child {
  order: 1;
}

button:last-child {
  order: -1;
}