Change width to full width in JavaScript -
i have following code in javascript. need increase width full width. in css can writing width:100%. how write in javascript? please guide. thanks.
jquery(document ).ready(function( $ ) { jquery('#example3' ).sliderpro({ width:1250, height:400, fade: true, arrows: true, buttons: false, fullscreen: true, shuffle: true, thumbnailarrows: true, autoplay: false }); });
sinse you're using slider pro 100% should possible width: '100%'
this says on page:
width: sets width of slide. can set fixed value, 900 (indicating 900 pixels), or percentage value, '100%'. it's important note percentage values need specified inside quotes. fixed values, quotes not necessary. also, please note that, in order make slider responsive, it's not necessary use percentage values. default value: 500
Comments
Post a Comment