Constructing the required layout has proven to be much more difficult than anticipated. Even with a diagram illustrating how it should look, aligning div D to the bottom of div A without using absolute positioning is causing some trouble (as it messes up the page). Additionally, ensuring that div A's height matches div B's height regardless of content discrepancies is another challenge.
My diagram:
Here is the HTML:
<div class="container">
<div class="A">
<div class="C">Align to top</div>
<div class="D">Align to bottom</div>
</div><!--end A-->
<div class="B">
<img src="images/picture.jpg"/>
</div><!--end B-->
</div><!--end container-->
CSS:
.container {border: 1px solid #999; width:49%; box-sizing:border-box; display: inline-block; padding: 20px; vertical-align: top;}
.A {width:39%; display:inline-block; vertical-align: top;}
.C {font-size: 1.5em;}
.B {width:60%; display:inline-block; vertical-align: top;}
.D {font-size: 1.2em;}
This task presents a unique set of challenges, combining various elements in one project. Any assistance would be greatly appreciated. Thank you.