I want to align text to the bottom of a container. I know I can use position: relative;
on the container, and position: absolute; bottom: 0;
on the inner element to accomplish this. But, I have floated elements like such:
float: left; .align-bottom (and also float: left)
++++++++++++++++++++++++++++++++++++++++++++++++
+ #blah | +
+ | +
+ Title btn1 btn2 | TEXT +
++++++++++++++++++++++++++++++++++++++++++++++++
Where the floated element on the left has a non-fixed size.
How can I align TEXT to the bottom of the right container using CSS and HTML?
So far I've tried:
.align-bottom {
/* the 2nd floated element, on right side */
position: relative;
overflow: auto;
height: 100%;
}
.align-bottom div {
position: absolute;
bottom: 0;
}
CSSDesk: http://cssdesk.com/kNE98 (like jsFiddle, but no JS)
I've seen a few questions somewhat related (not many two floating containers though) including: Vertical Align with Absolute Positioning but it wasn't much help because the floated sections were the same height.