I found a lot of fancybox2 solutions but not a single fancybox 3 solution. So the first thing
I have a html like that in my iframe
<a data-fancybox class="fancyboxedit" data-src="facebook" href="javascript:;">
<input type='submit' value='Submit'>
</a>
$(".fancyboxedit").fancybox({
iframe : {
css : {
width : '600px'
height: '800px'
}
}
});
Altough the documentation is calling it can be overwritten I cant change anything.Hovewer I can change from source file it is ok
You are missing , in attributes of object
The idea is that you are encouraged to set iframe width/height using CSS -
.fancybox-slide--iframe .fancybox-content { .. }
This allows you to easily combine width/height with other CSS properties like min-width/max-width and use media queries. The default iframe dimensions are set using CSS, too.
Besides this, if you need to overwrite CSS values using JS, you can do it like this:
And, as Dat Nguyen already said, you have typo in your code - missing comma.