JSFiddle - React, Tailwind, and code Playground

HTML

<p>start of main contents. <span id="span1">start of span1 contents.
        <span id="span2">span2 contents.</span>
end of span1 contents.</span>end of main contents.</p>

CSS

#span1 {
    position: relative;
    color:red;
}
#span2 {
    position:absolute;
    top:200px;
    left:-100px;
    height:130px;
    width:130px;
    color:green;
}