If it's given a div and a sequence of nested divs with float: left
properties, how do you make the right edge of the last div in the sequence "stick" to the right edge of the parent div whenever the the right edge of the parent div moves and in way that the two edges move together even if the content of the last div exceeds the available room?
+----------------------------------------+ | parent div | | +-------------+ +---------------------+| | | | | || | | div 1 | | div 2 >>||<< the right edge of div 2 | | float: left | | float: left || aligns with the right edge | | | | || of the parent div | +-------------+ +---------------------+| +----------------------------------------+
EDIT: A condition I should have mentioned is that the divs before the last one are allowed to have fixed widths but the width of the last div should depend on its contents and the position of the right edge of the parent div. Also, the last div is required to be floated left.