Using the following JS the width isn't being adjusted. It doesn't get adjusted when I use '750'
or '750px'
$('a#city-prompt').fancybox({
'width': 750
});
I've posted on the fancybox forums about this and haven't gotten a response
You probably have to set autoSize
to false
:
$('a#city-prompt').fancybox({
'width': 750,
'autoSize': false
});
About width
from the documentation:
Width for content types 'iframe' and 'swf'. Also set for inline content if 'autoDimensions' is set to 'false'
None of the answers here worked for me, but this did the trick:
$.fancybox({
'content':$("#element").html(),
'width':'500',
'autoDimensions':false,
'type':'iframe',
'autoSize':false
});
The 'autoSize':false
was the missing key
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With