I have been using Fancybox 1.3.4, and right there I have the dimensions of the iframe in the link itself.
Here is an example of how I have it
test.html?width=675&height=470
When I click on the link fancybox will open the iframe with those dimensions. I am trying Fancybox V2, but I'm confused on how to set the dimensions for the iframes. I want every iframe to have different dimensions. How would I do it?
Set your html (with HTML5
DOCTYPE
) like this:(set
width
andheight
on thedata-
attributes for each element)then this script:
should do the trick in fancybox v2.x