Home > ASP.NET > Set Fancybox height and width

Set Fancybox height and width


 

To set height and width of fancybox popup add following script in page head section

————————————————————————————————-

<script language=”javascript” type=”text/javascript”>

$(document).ready(function () {

$(‘.fancyboxcustomaddteam’).fancybox({
‘width’: 850,
‘height’: 800,
‘transitionIn’: ‘elastic’, // this option is for v1.3.4
‘transitionOut’: ‘elastic’, // this option is for v1.3.4
// if using v2.x AND set class fancybox.iframe, you may not need this
‘type’: ‘iframe’,
// if you want your iframe always will be 600×250 regardless the viewport size
‘fitToView’: false // use autoScale for v1.3.4
});
});

</script>

————————————————————————————————-

Hope it helps !

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: