JSFiddle - React, Tailwind, and code Playground

by mrk1989

HTML

<form id="formaddimg"  method="get" >
    <input type="file" id="files" name="files" style="width:350px;" >
   <input type="submit" value="Submit"></form>

JavaScript

window.onload = function() {
  //document.body.parent.style.webkitTransform ='translate(40px)';
  var div = document.createElement("div");
  var br=document.createElement("br");
  div.id="divs";
  div.style.display='block';
  div.style.width = "600px";
  div.style.height = "100px";
  div.style.background = "#C2E2FF";
  div.style.color = "grey";
  div.innerHTML = "my div";
  document.body.insertBefore(br, document.body.firstChild);
  document.body.insertBefore(div, document.body.firstChild);
  document.getElementById("divs").style.fontStyle = 'italic';
  //document.getElementById("divs").style.position = "fixed";
 
  
  }