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

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -