Your HTML is malformed. Browsers will attempt to fix it for you but may do this in different ways, resulting in different output. You should make sure that you site conforms to the W3C standard to ensure the most consistent and future prof output.
Here is a parser that may help you.
See this <div class="windowLine2"</div>
. the div tag is not closed properly
<div class="windowLine2"</div>
<div class="content">
<h3>Media: Video</h3>
<p>Sample Text</p>
<p>
<a class="cta" href="">
Learn more
</a>
</p>
</div>
you probably want this:
<div class="windowLine2">
<div class="content">
<h3>Media: Video</h3>
<p>Sample Text</p>
<p>
<a class="cta" href="">
Learn more
</a>
</p>
</div>
</div>