Specify width or height as percentages (%) in jquery options?

Use strings for the value var options = $. Extend( { width: '300%', height: '200%' }.

Use strings for the value.. var options = $. Extend( { width: '300%', height: '200%' }.

No, that doesn't work - seems to still take it as 300px for the width – aligreene Nov 2 at 12:15 Yes - it works - sorry! Thank you – aligreene Nov 2 at 12:30.

. Width( value ): value An integer representing the number of pixels, or an integer along with an optional unit of measure appended (as a string). Source: jQuery .

Width( value ), so in your case: var options = $. Extend( { width: '300%', height: '200%' }.

Thanks to you also, Sascha - but I couldn't give the correct answer to both of you! – aligreene Nov 2 at 12:30.

If you use percentages or any units, you have to put the values in quotes. If you don't it's not legal javascript syntax. You're also missing a closing parenthesis and semicolon.

Var options = $. Extend( { width: '300%', height: '200%' }).

Thank you for the syntax correction, and the right answer too – aligreene Nov 2 at 12:31.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions