I have a (horizontally) centered outer div containing two elements of unknown width:
<div style='width:800px; margin:0 auto'>
<div style='float:left'>...</div>
<div style='float:right'>...</div>
</div>
Both floats are top-aligned by default, and are of varying/unknown and different heights. Is there any way to make them vertically centered?
I eventually made the outer div
display: table
and the inner divs
display: table-cell;
vertical-align: middle;
text-align: left/right;
but I'm just curious if there's a way to do this with the floats.