JSFiddle - React, Tailwind, and code Playground

by sonicblis

HTML

<div>
Row 1
<span>
  I thought this would show above 'Row 2'
</span>
</div>
<div>
Row 2
</div>

CSS

body{
  font-family: arial;
}

*{
  padding: 10px;
}

div{  
  background: green;
  position: relative;
  width: 100%;
  z-index: 1;
}
span{
  top: 0;
  right: 0;
  z-index: 2;  
  position: absolute;
  border: solid 1px red;
  height: 70px;
  background: white;
  display: inline-block;
  
}