JSFiddle - React, Tailwind, and code Playground

by huang wenxiong

HTML

<div class="rel">
		<div class="rel1"></div>
	</div>

CSS

.rel{
			position: absolute;
			border: 1px solid #ccc;
			height: 200px;
			width: 200px;
			
		}
		.rel1{
			position: relative;
			left: 100px;
			top:100px;
			background: blue;
			height: 50px;
			width: 50px;
		}