Skip to content

Instantly share code, notes, and snippets.

@vampireneo
Created February 28, 2014 07:55
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save vampireneo/9267036 to your computer and use it in GitHub Desktop.
Save vampireneo/9267036 to your computer and use it in GitHub Desktop.
HTML for embed another page by iframe, without border
<html>
<head>
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
</head>
<body style="margin:0px;padding:0px;overflow:hidden">
<iframe src="__URL_HERE__" frameborder="0" style="overflow:hidden;overflow-x:hidden;overflow-y:hidden;height:100%;width:100%;position:absolute;top:0px;left:0px;right:0px;bottom:0px" height="100%" width="100%"></iframe>
</body>
</html>
@donaloflynn
Copy link

Thank you so much - this is so simple and exactly what I needed. It would appear that overflow:hidden does what frameborder=0 can't!

@mnsampath236
Copy link

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment