JSFiddle - React, Tailwind, and code Playground

by Hemant Sharma

HTML

<div class="container">
<div class="first  centerh bottom">
  Example of Top-Right Text
</div>
</div>

SCSS

* {
  paddin: 0;
  margin: 0;
}
.container {
  background: #eee;
  height: 100vh;
  color: #fff;
  font-weight: bold;
  
  .first {
    background: red;
    min-height: 50vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
  }
  
  .left {
    align-items: flex-start;
  }
  .centerh {
    align-items: center;
  }
  .right {
    align-items: flex-end;
  }
  
  .top {
    justify-content: flex-start;
  }
  .centerv {
    justify-content: center;
  }
  .bottom {
    justify-content: flex-end;
  }
}