title: Create div above other div only with javascript
body: <p>I need create a div above another div, but I dont have access to the css file, thus everything needs to be done via JavaScript.</p>
  
  <p><strong>This is my wrong code:</strong></p>
  
  <pre><code>var div = document.getElementById("down"); 
  var divAbove = document.createElement("div");
  
      divAbove.id = "up";
      divAbove.style.background = "red";
      divAbove.style.position = "absolute";
      divAbove.style.width = "150px"
      div.appendChild(divAbove );
  </code></pre>
  
  <p>I can't see the new div.</p>