JSFiddle - React, Tailwind, and code Playground

by Anderson Carlos Woss

HTML

<div>DIV</div>

CSS

div:after {
  position: fixed;
  top: 0;
  left: 100px;
  border: 1px solid red;
  padding: 10px;
  content: '';
}

JavaScript

const after = document.querySelector('div');
const h1 = document.createElement('h1');

h1.content = 'Hello world';

after.appendChild(h1);