Link to home
Start Free TrialLog in
Avatar of deanlee17
deanlee17

asked on

JQuery slider width

Hi guys,

I am trying to use the following slider : basic-slider.com

My website is test.urban-indoors.co.uk

Im trying to get the slider to be 990px wide, as you can see on the left there is always a small gap and you can see a small part of the previous image, any ideas? I should mention that both the BeModern images are 990px wide

Many Thanks,
Dean.
Avatar of mkgtvm
mkgtvm

It seems that the left value you are assigning for the picture (I believe you are doing it through javascript as I cant see it that in the CSS file) is 10px less than where it has to be the correct left value. Please correct the logic in calculating the left value and see.
Avatar of deanlee17

ASKER

Ok im kind of with you here. But im not sure exactly what the that value is called or set to in the javascript file. I'm confident its not a css issue
The only size change I made was in the attached bit of code, as you can see, ive changed the size quite a lot from the original (width:620) so I cannot see why its 10px short, ive tried setting it to 1000px wide, same issue.

jQuery(document).ready(function($) {
    $('#banner-fade').bjqs({
        'height' : 320,
        'width' : 620,      <-- changed to 990
        'responsive' : true
    });
});

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of mkgtvm
mkgtvm

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Yes just working on that.

-2970 is 3 * 990 (obv with a minus added)
Oddly tho in the demo the width is 620 and images are 620, yet mine is 990 and images are 990 and suddenly there is a gap, odd.
Ok. Let me know if you need more help. Thanks
Should be ok, I can get it working on my desktop, just need to get it into the management system that my hosting company use.

Thanks for your help
Great, and if you are happy with my help accept my solution.