For some reason the css doesnt apply to this:
document.write('<p ' + 'class="' + txtClassName + '">' + txtValue + "</p>");
And when I go into inspect, it shows this:
<p class="txt">Lorem ipsum dolor sit amet, consectetur adipiscing elit</p>
If I put that exact line into the original html file, the css works.
Anyone know why this is?