JSFiddle - React, Tailwind, and code Playground

HTML

<div style="width:200px">
  <span before-content="4.5" contenteditable="true">Test this simple layout in IE11 and see the wonders of the internet!</span>
</div>

CSS

[contenteditable=true]:before {
  content: attr(before-content);
  margin-right: 2px;
}