Convert width to max-width