html - How do I set a custom viewport for an iframe? -


okay. actually, maybe title makes no sense.

please read:

i want create iframe custom width. okay. please try understand.

i don't want iframe responsive (the site embedded in iframe responsive) , want appear shrunk picture.

i can give examples if wish. idea how this?

if have tried width attribute , didn't work, try using css' max-width property.

example,

index.html

<iframe src="http://www.google.com/" class="if"></iframe> 

style.css

.if { max-width: 100px; } 

find here live demo


Comments

Popular posts from this blog

c# - Unity IoC Lifetime per HttpRequest for UserStore -

Change the color of an oval at click in Java AWT -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -