Responsive/fluid iframe
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 - 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;
}
Developer | Gabriel |
Username | gab |
Uploaded | July 18, 2022 |
Rating | 3 |
Size | 1,966 Kb |
Views | 38,456 |
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!
Name | Size |
CSS3 Login | 3,115 Kb |
BEST PLACEHOLDING SERVICES | 6,317 Kb |
A clicking cookie gaaaame... | 16,067 Kb |
Replace a not existing img | 2,026 Kb |
Projects page | 4,147 Kb |
Cool toggle with filling effect | 2,499 Kb |
Inline editing with jquery | 2,576 Kb |
Loggy.js - CSS formatted JS console logs | 2,204 Kb |
LocalStorage Test | 2,927 Kb |
A Pen by Gabriel | 2,459 Kb |
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!
Name | Username | Size |
LBCA - Mail canvas | Emnbdx | 3,856 Kb |
Expandable Left Side Bar with jQuery animate | Retrofuturistic | 2,483 Kb |
Heatmap Color Scales | Stevepepple | 2,331 Kb |
SVG Animation | Thepheer | 4,793 Kb |
CSS Gem Badge | Orchard | 3,335 Kb |
Vue.js Starter | Andymerskin | 1,268 Kb |
Christ the Redeemer | Prashantsani | 2,208 Kb |
CSS Bot Confusion | Jpod | 3,456 Kb |
Slide In Panel | Vikvarg | 2,811 Kb |
Wikipedia Viewer | Codinger | 4,681 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!