JSFiddle - React, Tailwind, and code Playground

by Kevin Pliester

HTML

<div class="wrapper">


  <div class="content">Test

  </div>

  <div class="footer">Test
  </div>

</div>

CSS

.wrapper {
  position: relative;
}

.content {
  height: 100vh;
  width: 100%;
  background: red;
  z-index: 2;
  position: absolute;
  top: 0;
  left: 0;
  margin-bottom: 25vh;
}

.footer {
  height: 25vh;
  width: 100%;
  background: blue;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 1;
}