For the sake of illustration, in the steps below I will scale and position the March of Dimes homepage to isolate the banner graphic showing #ZapZika into a 100x100 box.
Step 1: Nothing to see here, just the ordinary page
.wrap {
width: 1280px; height: 1024px;
padding: 0;
overflow: hidden;
}
.frame {
width: 1280px; height: 1024px;
border: 0;
}
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2rTHg_uaFNJp5Z2tWTJkLhMmOfq1AA2_LF8O6UXapv3z3bE6hFunfqkCXeiFo2-d-UgP4cNtBzc5ia0AaFOr8j_NsuoWiBNAvd79dIuPk-9NB4pjbuo5E8gXMzmGK8dO-CJIaTy261WY/s400/step1.png)
Step 2: Scale the target page to 25%
.wrap {
width: 1280px; height: 1024px;
padding: 0;
overflow: hidden;
}
.frame {
width: 1280px; height: 1024px;
border: 0;
-ms-transform: scale(0.25);
-moz-transform: scale(0.25);
-o-transform: scale(0.25);
-webkit-transform: scale(0.25);
transform: scale(0.25);
}
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5QJ48DqlUAmXribjMDwUaNE_wH_uk1214I8KitJTCRJ4KZcaLSHkSZkw5H3V0DaG7O3nygmCzPjq07nk6oldl70Q4-5iPUaf4pyDoxPAMHDa-c16YhavHwAXfoDNUISFSMZwyX3ishPw/s400/step2.png)
Step 3: Crop the outer container to the final dimensions: 100x100
.wrap {
width: 100px; height: 100px;
padding: 0;
overflow: hidden;
}
.frame {
width: 1280px; height: 1024px;
border: 0;
-ms-transform: scale(0.25);
-moz-transform: scale(0.25);
-o-transform: scale(0.25);
-webkit-transform: scale(0.25);
transform: scale(0.25);
-ms-transform-origin: 0 0;
-moz-transform-origin: 0 0;
-o-transform-origin: 0 0;
-webkit-transform-origin: 0 0;
transform-origin: 0 0;
}
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiokumOwa9xc5oPooKg-PmWX9D7lnuSakful334vU2o5SjfBJe02sAGWz3R2MyuKEl3JwoEstURudOhr-1FegpIMzn3EvmfaN5N_mKdG2m8T_GdQ3EY7mqoCxntKCtkE_v4GyujD_jCx9o/s400/step3.png)
Step 4: Position the target page
.wrap {
width: 100px; height: 100px;
padding: 0;
overflow: hidden;
}
.frame {
width: 1280px; height: 1024px;
border: 0;
-ms-transform: scale(0.25);
-moz-transform: scale(0.25);
-o-transform: scale(0.25);
-webkit-transform: scale(0.25);
transform: scale(0.25);
-ms-transform-origin: 0 0;
-moz-transform-origin: 0 0;
-o-transform-origin: 0 0;
-webkit-transform-origin: 0 0;
transform-origin: -260px -90px;
}
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9OSGU4GnUQCbLyJe7ZuRJhjeEfqY4MX7_DZZrbzN8Bn3ipuvsP0p7eQtIvS8cDBBqBCcANjpIjoudOwz3Q9h7xkHynJNjpIZGxHALNg5uVZafWLMGgTLebZ0ohkxzWN5CdB63DN2nTko/s400/4.png)
Voila!
A great place to practice this transform capability is: http://jsfiddle.net/yy8yb/609/.
Below is an example of the full technique to implement the frame using CSS classes.
.wrap {
width: 253px; /* used to crop the outer container */
height: 192px;
padding: 0; /* pad the outer container */
overflow: hidden;
}
.frame {
width: 1024px; /* resolution of iframe target page */
height: 768px;
border: 0;
/* Use the scale elements to scale target page */
-ms-transform: scale(0.25); /* IE */
-moz-transform: scale(0.25); /* Firefox */
-o-transform: scale(0.25); /* Opera */
-webkit-transform: scale(0.25); /* Chrome, Safari, Opera */
transform: scale(0.25);
/* Use the origin elements to position the target page */
-ms-transform-origin: 0 0;
-moz-transform-origin: 0 0;
-o-transform-origin: 0 0;
-webkit-transform-origin: 0 0;
transform-origin: 0 0;
}
<div class="wrap">
<iframe class="frame" src=http://marchofdimes.org></iframe>
</div>