JSFiddle - React, Tailwind, and code Playground

by Arjun Singh

HTML

<div class="outer">
  <div class="inner">
    <div class="innermost">
    
    </div>
  </div>
</div>

CSS

html, body{
  height: 100%;
  width: 100%;
  margin: 16px;
  background: biege;
}

.outer{
  position: absolute;
  height: 100px;
  width: 100px;
  border-radius: 4px;
  border: 5px solid lightslategray;
  background-color: tomato;
  
  display: flex;
  align-items: center;
  justify-content: center;
}

.inner{
  height: 50%;
  width: 50%;
  border-radius: 4px;
  
  background-color: rebeccapurple;
}

.innermost{
  height: 20px;
  width: 20px;
  background-color: magenta;
  border-radius: 50%;
  
  position: absolute;
  top: 0;
  left: 0;
}