5481 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Located in Australia
  • Has sold $1,000+ on Envato Market
+4 more
Australia says

Demo: http://jsfiddle.net/k9tZB/1/

Creating a simple slider. I am buggered if I can get the prev and next image sprites to align as per the IMAGE below the slider.

Any assistance appreciated.

Cheers

5481 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Located in Australia
  • Has sold $1,000+ on Envato Market
+4 more
Australia says

Edit: updated fiddle: http://jsfiddle.net/k9tZB/7/

148 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 50+ members
  • Has sold $40,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+4 more
enstyled says
5481 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Located in Australia
  • Has sold $1,000+ on Envato Market
+4 more
Australia says

Check this: http://jsfiddle.net/k9tZB/10/

Hey thanks.

Nearly there just the next sprite to position correctly. But I reckon that will squish into position nicely once its within the container div. Thanks.

148 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 50+ members
  • Has sold $40,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+4 more
enstyled says

Sure, I guess you can fit it with a fixed size of the container. Glad i could help ;)

5481 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Located in Australia
  • Has sold $1,000+ on Envato Market
+4 more
Australia says

Sure, I guess you can fit it with a fixed size of the container. Glad i could help ;)

Thanks. Yeah the next is screwed if you try and contain it goes all to cock.

I changed the prev to:

div.prev-button2 { width: 11px; height: 18px; background: url(http://sitehelp.com.au/demos/slider/images/422_prev.png) no-repeat 0px 0px; float: left; margin-top: 20px; margin-right: 20px; }

Seems to fit in better.

Just need to fix the next.button2 issue now.

148 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 50+ members
  • Has sold $40,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+4 more
enstyled says
5481 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Located in Australia
  • Has sold $1,000+ on Envato Market
+4 more
Australia says

Cheers Mate, I did it slightly different, just comparing code now :)

Really appreciate your help. Cheers Ste :)

5481 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Located in Australia
  • Has sold $1,000+ on Envato Market
+4 more
Australia says

Ok, I went with your code lolol.

Thanks :)

by
by
by
by
by
by