A
A
Alexander Chibilyaev2015-09-10 00:02:32
JavaScript
Alexander Chibilyaev, 2015-09-10 00:02:32

How to set width in jssor?

In Jssor slider (carousel slider) photos of different widths (the height is the same)
How to make the width of the block with the photo equal to the actual width of the photo?
The $SlideWidth: 234 option sets the size of all divs that wrap the IMG, turning it off doesn't help.

<div id="myslide" u="slides" >
    <div><img src="http://site.com/html/img/userimg/galslider/1.png" alt="" width="229" height="343" /></div>
    <div><img src="http://site.com/html/img/userimg/galslider/2.png" alt="" width="229" height="343" /></div>
    <div><img src="http://site.com/html/img/userimg/galslider/3.png" alt="" width="515" height="343" /></div>
</div>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor Kaspersky, 2015-09-10
@HHabar

width: auto;
height: 343;
So try it maybe

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question