Quantcast
Viewing latest article 18
Browse Latest Browse All 28

Answer by kaw for Resizing an iframe based on content

When you want to zoom out a web page to fit it into the iframe size:

  1. You should resize the iframe to fit it with the content
  2. Then you should zoom out the whole iframe with the loaded web page content

Here is an example:

<div id="wrap"><IFRAME ID="frame" name="Main" src ="http://www.google.com" /></div>

<style type="text/css">    #wrap { width: 130px; height: 130px; padding: 0; overflow: hidden; }    #frame { width: 900px; height: 600px; border: 1px solid black; }    #frame { zoom:0.15; -moz-transform:scale(0.15);-moz-transform-origin: 0 0; }</style>

Viewing latest article 18
Browse Latest Browse All 28

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>