Here is the layout I am working with: this
I have managed to position everything correctly.
The issue arises when I try to add margin to the text inside my description container. Every time I make a change, the div shifts down slightly. If I use absolute positioning in the .contentDesc class, the div simply disappears. I suspect this happens because the video comes before this particular div?
I attempted using float:left on the video which resulted in unexpected behavior.
Adding top padding worked temporarily, but then the scroll height does not match the text height.
You can view my code on jsfiddle here
Code:
<div class="Projectscontent">
<div class="Contentimage"> d</div>
<div class="footer"> </div>
<div class="projectchooser"></div>
<div class="videoP">
<iframe src="https://player.vimeo.com/video/110053234"?autoplay=0&loop=0&title=0&byline=0&portrait=0 width="700" height="300" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
</div>
<div class="ContentDesc">
<div class="descP">
<p class>aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</p>
</div>
</div>
</div>
<div class="Projectscontent">
<div class="Contentimage"> d</div>
<div class="footer"> </div>
<div class="projectchooser"></div>
<div class="videoP">
<iframe src="https://player.vimeo.com/video/110053234"?autoplay=0&loop=0&title=0&byline=0&portrait=0 width="700" height="300" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
</div>
<div class="ContentDesc">
<div class="descP">
<p class>aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</p>
</div>
</div>
</div>