Question and answer is powered by AnsPress.io
I have 3 images and I want to create a full-width slider with different widths.
My HTML code like:
<div id="image"> <img src="abc.jpg" alt="" /> </div>
I got the success to apply the below code. You can use this code.
$("#image> img").each(function() { var element = $(this); element.css({'margin-left': -(element.width()/2)}); });