Skip to content

Instantly share code, notes, and snippets.

@bferronato
Forked from leowebguy/index.html
Created November 6, 2020 16:37
Show Gist options
  • Save bferronato/e51ccd3e7fce18380557688efa325f9f to your computer and use it in GitHub Desktop.
Save bferronato/e51ccd3e7fce18380557688efa325f9f to your computer and use it in GitHub Desktop.
Responsive iframe full screen. Display page without and hide original url address.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test Layout</title>
<style type="text/css">
body, html
{
margin: 0; padding: 0; height: 100%; overflow: hidden;
}
#content
{
position:absolute; left: 0; right: 0; bottom: 0; top: 0px;
}
</style>
</head>
<body>
<div id="content">
<iframe width="100%" height="100%" frameborder="0" src="http://cnn.com" />
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment