title: JavaScript lineHeight
body: <p>I'm using the JS code below to clear the content of a div element to insert some other elements after.However when the div is closed its CSS is pretty much lost and I'm trying to either keep it or renew it:</p>
  
  <p>Javascript code</p>
  
  <pre><code>function Changecon() {
      var element = document.getElementById("myList");
      while (element.firstChild) {
          element.removeChild(element.firstChild);
      }        
      document.getElementById("myList").style.lineHeight="577";
  };
  </code></pre>
  
  <p>For some reason last code line won't work.Any solution?Thanks in advance.</p>