user3435774
user3435774

Reputation: 27

jssor width and height in percentages

The slides and captions and all elemetns of jssor slider take measuments in pixels. As a result the sliders look wierd on a bigger resolution screens. How do i mention heights and widhts of the jssor sliders in percentages?

Upvotes: 1

Views: 1622

Answers (1)

jssor
jssor

Reputation: 6985

you can use $ScaleWidth(with) method to scale the slider to any size.

<script>
    //scale jssor slider to 70% width of parent container
    jssor_slider1.$ScaleWidth(parentWidth * 0.7);
</script>

Upvotes: 1

Related Questions