css calculate width based on another element