I have a responsive iframe
where I load a bootstrap 3 HTML template. I am building the ability for a user to customise the template by changing colors / fonts.
What I want to accomplish is keeping the HTML and CSS in large screen mode and scale the image down with the size of the iframe
responding to browser changes.
Using this example I have succeeded in creating the iframe
responsive in my page. But right now its contents will change to mobile CSS on the smaller page / iframe
sizes.
Is it possible to fix the viewport of the iframe
content to a medium to large screen? Or perhaps a responsive CSS class that scales the content with the iframe
changes?
In my example, the content is in A4 page format, so I created a really small transparent png with A4 ratio per the suggestion in the example.
My HTML is:
<div class="row">
<div class="col-xs-12 template-preview-container">
<div class="h_iframe">
<img class="ratio" src="/img/app/iframe-background.png"/>
<iframe src="http://my/template/link" frameborder="0" allowfullscreen></iframe>
</div>
</div>
</div>