Responsive/fluid iframe

Developer
Size
1,966 Kb
Views
38,456

How do I make an responsive/fluid iframe?

What is a responsive/fluid iframe? How do you make a responsive/fluid iframe? This script and codes were developed by Gabriel on 18 July 2022, Monday.

Responsive/fluid iframe Previews

Responsive/fluid iframe - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>responsive/fluid iframe</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ .super-iframe-holder { position: relative; padding-bottom: 56.25%; padding-top: 30px; height: 0; overflow: hidden;
}
.super-iframe-holder iframe,
.super-iframe-holder object,
.super-iframe-holder embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; padding: 0; margin: 0; bottom: 0; outline: 0;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div class="super-iframe-holder"> <iframe src="https://www.google.com/maps/d/embed?mid=zAFwxutuibHA.kpIdskLIwieo" width="640" height="480"></iframe>
</div>
<br />
<hr />
<br />
<div class="super-iframe-holder"> <iframe width="560" height="315" src="https://www.youtube.com/embed/CkGVMWK10qU" frameborder="0" allowfullscreen></iframe>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
</body>
</html>

Responsive/fluid iframe - Script Codes CSS Codes

.super-iframe-holder { position: relative; padding-bottom: 56.25%; padding-top: 30px; height: 0; overflow: hidden;
}
.super-iframe-holder iframe,
.super-iframe-holder object,
.super-iframe-holder embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; padding: 0; margin: 0; bottom: 0; outline: 0;
}
Responsive/fluid iframe - Script Codes
Responsive/fluid iframe - Script Codes
Home Page Home
Developer Gabriel
Username gab
Uploaded July 18, 2022
Rating 3
Size 1,966 Kb
Views 38,456
Do you need developer help for Responsive/fluid iframe?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Gabriel (gab) Script Codes
Create amazing marketing copy with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!