JSFiddle - React, Tailwind, and code Playground
HTML
<div class="container"><div class="content"> This is the content div. It should be 10% from the left of the container div.
CSS
.container { position: relative; width:500px; height:500px; } .content { position: absolute; left: 10%; top: 50%; }