Resizing HTML element dynamically to fit iframe content

Can you think of any way to make an html element expand or shrink to the size of the iframe content? Thanks for any help