I need to make the iframe embed code for a vine fit in the size of the enclosing div. Is there a way to do this? The embed code is supplied from a database and already has sizing information as follows:
<iframe src="https://vine.co/v/iMJzrThFhDL/embed/simple" width="600" height="600" frameborder="0"></iframe><script src="https://platform.vine.co/static/scripts/embed.js"></script>
The embed code gets inserted at run time using Angular 2 code to be the innerHTML of a div as follows:
<div [innerHTML]="data.embed" style="width:300px;max-width:300px;"></div>
The embedded vine gets cropped but not scaled. Is there a way to force it to be scaled to fit?