title: Align Text to Left and Vertically Center in div
body: <p>I have this JS code that I use to create a new div (I create several, dynamically). I want my text to be in the centered vertically and aligned to the left side of the div. Any suggestions on what to do? Here is my code:</p>
  
  <pre><code>        var leftDiv = document.createElement("div"); //Create left div
          leftDiv.id = "left"; //Assign div id
          leftDiv.setAttribute("style", "float:left;width:70%;vertical-align:middle; height:26px;"); //Set div attributes
          leftDiv.style.background = "#FFFFFF";
          leftDiv.style.height = 70; 
          user_name = document.createTextNode(fullName + ' '); //Set user name
  </code></pre>
  
  <p>One other thing. This code will center the text horizontally and it seems to gravitate to the top of the div instead of the middle.</p>