I'm using Fancybox2, could someone help me to adjust an image so that it is displayed completely without scrolling to see it all?
My image when opened with Fancybox is displayed like this:
My code in Fancybox is this:
$(document).ready(function() {
$(".fancybox").fancybox({
'width':980,
'height':980,
'type':'iframe',
'autoScale':'false',
'titleShow': 'true',
'position': 'auto',
helpers : {
overlay: {
'transparent':'true',
opacity: 0.8, // or the opacity you want
css: {'background-color': 'rgba(0, 255, 255, 0.2)',}
} // overlay
} // helpers
});
});
I use that height
and that width
to be able to visualize it well but it does not fit, any advice?