I want to open a fancybox modal with the content type being an iframe and I want to specify the height as a %.
If I use
$(".FullWindow").fancybox({
type: 'iframe',
href: 'http://www.google.com',
autoSize: false,
width: "95%",
height: "95%"
});
then this opens the modal to the correct size (but does not load the url - I only added the href property as a test) but when I use
$(".FullWindow").fancybox({
type: 'iframe',
autoSize: false,
width: "95%",
height: "95%"
});
the page opens but not at 95% of the window height.
I guess I am missing something simple
PROBLEM SOLVED Updated to the latest version of fancybox and the latest version of JQuery and it now works fine. Thanks to those who offered help.