5492 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

5492 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 5 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
5492 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 5 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 ;)

5492 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 5 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
5492 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 :)

5492 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 :)

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by