Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Responsive iframe full screen. Display page without and hide original url address.
<html lang="en" class="no-js">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
html body {width: 100%;height: 100%;padding: 0px;margin: 0px;overflow: hidden;font-family: arial;font-size: 10px;color: #6e6e6e;background-color: #000;} #preview-frame {width: 100%;background-color: #fff;}</style>
<script src="//"></script>
//function to fix height of iframe!
var calcHeight = function() {
//var headerDimensions = 0; //$('#header-bar').height();
$(document).ready(function() {
/*$('#header-bar a.close').mouseover(function() {
$('#header-bar a.close').addClass('activated');
}).mouseout(function() {
$('#header-bar a.close').removeClass('activated');
$(window).resize(function() {
}).load(function() {
<iframe id="preview-frame" src="" name="preview-frame" frameborder="0" noresize="noresize" style="height: 902px;">

This comment has been minimized.

Copy link

@bferronato bferronato commented Nov 6, 2020

<title>Test Layout</title> <style type="text/css"> body, html { margin: 0; padding: 0; height: 100%; overflow: hidden; }
            position:absolute; left: 0; right: 0; bottom: 0; top: 0px; 
    <div id="content">
        <iframe width="100%" height="100%" frameborder="0" src="" />

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