Item alignment with flexbox

by Simon Harte

HTML

<div class="wrapper">
  <div class="top">
  </div>
  <div class="bottom">
    <div class="inner">

      <div class="text">Text</div>
      <div class="button">
        Lorem
      </div>
    </div>
  </div>
</div>

CSS

.wrapper {
  background: beige;
  display: flex;
  flex-direction: column;
  height: 400px;
}

.top {
  height: 50px;
  background: red;
}

.bottom {
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  justify-content: flex-end;
  background: yellow;
}

.inner {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.text {
  background: skyblue;
}

.button {
  background: limegreen;
}