Vinita Vinita - 6 months ago 26
jQuery Question

Can we give height in % in jQuery?{Colsed}

Can we give height in % in jQuery:

jQuery("#amazingslider-1").amazingslider({

jsfolder:jsFolder,

width:1024,
height:500,

skinsfoldername:"",

loadimageondemand:false,

isresponsive:true,

autoplayvideo:false,


How can we give height in percent (%)?

Answer

yes you can, just wrap in quotation marks:

width:"100%",
height:"50%"

EDIT:

see the following jsfiddle