I have a CSS code that I use to make iframes responsive by wrapping them with it.
.responsive-iframe-container {
position: relative;
padding-bottom: 56.25%; // Maintains aspect ratio
height: 0;
overflow: hidden;
}
.responsive-iframe-container iframe,
.responsive-iframe-container object,
.responsive-iframe-container embed {
position: absolute;
top: 0;
left: 0;
width: 100% !important;
height: 100% !important;
}
Although this method works perfectly for new Google Maps, an issue arises where the map disappears and is replaced with a gray box when it reaches a certain size. Upon inspection, it appears that Google sets 'display:none' at that specific size for unknown reasons. Is there a solution to resolve this problem?
You can see this situation in action through this test scenario:http://jsfiddle.net/kuLT6/