Contents inside a Coordinate Container will adjust to its size when you set its mode property to percent. Getting the text to resize as its container grows/shrinks can be done using CSS. See this recent post:
mode
percent