The green box with "X" inside should be floated right, should be at the right-most side inside the red-bordered dotted box

XXXXX
XXXXX
XXXXX