I have something like this:
<tr>
<td>
<div class="blue">...</div>
<div class="yellow">...</div>
</td>
<td>
<div class="blue">...</div>
<div class="yellow">...</div>
</td>
</tr>
Here’s a example of my current HTML: http://jsfiddle.net/DcRmu/2/
Inside a <tr>, all <td>s have the same height. I want the yellow <div>s inside those <td>s to align vertically along the bottom of <td>; and the blue <div>s to align vertically along the top of <td>. I tried to set vertical-align to bottom and it didn’t work.
Thanks!
vertical-align:bottom;should workExample: http://jsfiddle.net/jasongennaro/DcRmu/
EDITAs per the new fiddle
You just need to place
vertical-align:bottom;on thetdnot on thedivI updated your fiddle: http://jsfiddle.net/jasongennaro/DcRmu/7/
EDIT 2
I reread the question again and I saw the change
To do this, you need to
vertical-aligntotopon thetddivsdivamarginequal to the height of the cell minus the sum of thedivheights. In this case, 200px – (50px + 50px) = 100px.New CSS
Working example: http://jsfiddle.net/jasongennaro/DcRmu/9/