JSFiddle - React, Tailwind, and code Playground

HTML

<div>asdasdas
<span>text</span>
</div>

CSS

div {
 position: relative;   
    width: 200px;
    height: 200px;
    padding-left: 0px;
}


aside{
 position: relative;   
    width: 100px;
    height: 100px;
    left: 50px;
    
}

JavaScript

console.log( $("span").position().left );