Reply To: Resizing Grid

Million Dollar Script Forums General Resizing Grid Reply To: Resizing Grid

#2613

mattybonbon
Participant

Thanks for the quick reply,

That would be great if you could point me in the right direction. Nearest solution i found was to set the iframe id=myframe, remove height and width from iframe and then call it from this piece of js:

$(document).ready(function() {
setMyFrame();
$(window).resize(function() {
setMyFrame();
});
function setMyFrame() {
var w = $(“#myframe”).innerWidth();
var h = (1400 * w) / 1400;
$(“#myframe”).innerHeight(h);
}
});

With a line of css:

#myframe { width:100%; }

didn’t work however.

Thanks for taking a look into this for me!