14 posts
  • Has been part of the Envato Community for over 5 years
  • Has collected 10+ items on Envato Market
jonnyf says

Hiya,

Anyone help me with this? Probably something stupid….

http://demo.hostinri.com/bguthrie/brianalim/portfolio.html

Click “Martha’s Vineyard”, then notice the way the down/up arrow work and how the scroll bar moves. I put the scroll there to test.

I would like the buttons to scroll normally up and down.

I can post the java if needed, any thoughts?

240 posts
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Has been part of the Envato Community for over 4 years
+2 more
phpdude says

The problem is that the scroll buttons calculate how far it needs to scroll by the thumbnail size (86 as set in the JS file) but also from the height of the container, in this case the UL

What’s happened is that because you’ve floated the contents within the UL it thinks the UL is only a few pixels tall. What I suggest is that you set a CSS height to each LI and clear any floats after each row.

Then it will be able to calculate the full height of the UL

Hope this helps

14 posts
  • Has been part of the Envato Community for over 5 years
  • Has collected 10+ items on Envato Market
jonnyf says

Thanks! A Big Help!

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