In my CSS I have a particular class for a `div`

```css
div.videl
{
   width: 80%;
   margin: 0 auto;  
   background-color: #39275b;
   color: white;
   padding: 5px;
}

```

and then a function to add `div`s of that class:

```javascript
this.addVideo = function()
{
      var newVidElement = document.createElement("div");
      newVidElement.class = "videl";
      newVidElement.innerHTML = "<p>(" + ++this.numVids + ") <textarea class='vidtxt'></textarea></p>"
      document.getElementById("vidplaydiv").appendChild(newVidElement);
}

```

However, for some reason, that function is not correctly applying the CSS properties when I test it out. See this page <http://jaminweb.com/YoutubePlaylist.html> and click the Add Another Video button. Any idea what I'm doing wrong?