Vinita Vinita - 2 years ago 140
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 Source

yes you can, just wrap in quotation marks:

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

EDIT:

see the following jsfiddle

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download