I try to get a jssor slider working with 100% width (the container has a width of 70%). The problem is, that jssor only works with pixels, so if I use a slide_container with
Using Bootstrap, if you have Jssor inside an X
column div
, e.g., col-lg-12
:
jssor_slider1.$ScaleWidth(
Math.max(
Math.min
(parseInt($(".col-lg 12").css("width").replace("px", "")) -
(parseInt($(".col-lg-12").css("padding-left").replace("px", "")) +
parseInt($(".col-lg-12").css("padding-right").replace("px","")))),100));