Get cool snippets on php, css, jQuery, Magento and wordpress

Resize parent colorbox iframe size

If we are loading some content within already existing iframe it will not resized automatically. It will show only it’s initial width and height.

We can modify that parent iframe property by calling parent.$.fn.colorbox.resize().

Within that we can give our innerWidth and innerHeight.


Add this code inside ur script.

karthi s

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: