scope width constriction of the details div to the content parent