css calculate width dynamically based on another element