• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 5265
  • Last Modified:

fancybox width and height

I am poping up some information in fancybox and I dont want to use %. I want to give it a fixed width and height using pixels. I tried different combos like

'width': '30px',
'height': '70px',

pr just

'width': '30',
'height': '70',

but its not working. please see the code below. Anyhelp will be appreciated
$('.45x90lightbox').fancybox({
								'type': 'iframe',
								'width': '30%',
								'height': '70%',
								'transitionIn' : 'fade',
								'transitionOut'	: 'fade'
							});

Open in new window

0
syedasimmeesaq
Asked:
syedasimmeesaq
2 Solutions
 
Jonah11Commented:
Did you try:

'width' : 30,
'height' : 70

??
0
 
Seo_ExpertCommented:
Hello,

Check the below url :

http://fancybox.net/blog
0
 
irocwebsCommented:
Don't put the single quote around the value and don't use px:

Should work/look like this:
$('.45x90lightbox').fancybox({
   'type': 'iframe',
   'width': 30,
   'height': 70,
   'transitionIn': 'fade',
   'transitionOut': 'fade'
});
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now