Below is a simplified version of the layout I'm working with:
<div style="position: relative; width:600px;">
<p>Content with unknown length, but very lengthy</p>
<div>Content with unknown height</div>
<div class="btn" style="position: absolute; right: 0; bottom: 0; width: 200px; height: 100px;background-color: red;"></div>
</div>
The issue I'm facing is that when the text content is too long, it overlaps my absolutely positioned div.
I've looked for solutions online and on SO, and one suggestion was to add an invisible div at the location of the absolutely positioned div - however, if I could do that, then I wouldn't need the absolutely positioned div in the first place (or maybe I'm missing something).
Before diving into using jQuery, does anyone have a CSS solution in mind?