In this example below you will see how to do a Flex with some HTML / CSS and Javascript

This awesome code was written by drekken, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright drekken ©
  • HTML
  • CSS
  • JavaScript
    <div class="parent">
  <div class="child big">
    Here's some big content
  <div class="child small">
    Here's some small content.

/*Downloaded from https://www.codeseek.co/drekken/flex-JGLbEd */
    .parent {
  display: flex;
  width: 30%;
  margin: 0px auto;
  align-items: flex-end;
  flex-wrap: wrap;

.child {
  justify-content: space-between;
  &.big {
    background: red;
    font-size: 20px;
    flex-grow: 1;
  &.small {
    font-size: 14px;

/*Downloaded from https://www.codeseek.co/drekken/flex-JGLbEd */