Help with iframe formatting

0

Hello, I have a form of google that I want for a page with the formatting of 1280 * 800 and the problem and that does not occupy the page completely always hide or at the end of the form or iframe in the iframe it hides content I want it to occupy the potion of the page in width and height, can help me or indicate me some way, even in css I tried to correct the positioning but do not know do not know why, thank you.

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>teste</title>
</head>

<body>
	<iframe src="https://docs.google.com/forms/d/e/1FAIpQLSd4pzJ9kRydc-UVkEkm9xKDZjF0S3Earn-Wjcbh8FEAlYnkXA/viewform?embedded=true"width="100%" height="825" frameborder="0" marginheight="0" marginwidth="0">Loading...</iframe>
</body>
</html>
    
asked by anonymous 06.11.2018 / 21:12

1 answer

0

I used this css code in the format 1280x800 in the chrome console and the height continues to malfunction I do not want that side scroll I want to fill the page. I also changed the html to see if a div with measures corrected the iframe.

html, body {
    margin: 0;
    padding: 0;
    overflow: hidden;
}
html, body, .main, .main iframe {
    margin: 0;
    width: 100%;
    height: 100%;
}
.main iframe {
    border: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
<!DOCTYPE html>
<html lang="">
<head>
    <meta charset="utf-8">
    <title></title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="css/style.css">
</head>

<body>
<div class="main">
<iframe src="https://docs.google.com/forms/d/e/1FAIpQLSd4pzJ9kRydc-UVkEkm9xKDZjF0S3Earn-Wjcbh8FEAlYnkXA/viewform?embedded=true"frameborder="0" marginheight="0">Loading...</iframe>
</div>
</body>
</html>
    
07.11.2018 / 10:40