Skip to content

Instantly share code, notes, and snippets.

@mattboon
Created July 21, 2011 22:05
Show Gist options
  • Save mattboon/1098351 to your computer and use it in GitHub Desktop.
Save mattboon/1098351 to your computer and use it in GitHub Desktop.
JS fix for Media Query iFrames
$(document).ready(function() {
$(window).resize(function(){
$("iframe").css({
width: "100%",
height: ($(this).width()) * .58
});
});
$(window).resize();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment