I have image thumbnails pulled out of a database that sits in a div that 300px wide. Each image thumbnail (which sits inside the div) is 53px wide and 40px high. Depending which product is selected by the user the image thumbnails will be displayed in the 300px div.
The problem i have got is when there are say 8 thumbnails to be displayed i still need them to sit in that div but the user can scroll horizontally (left to right) to view the thumbnails.
At the moment another row is inserted underneath the top one which is not quite what i am looking for.
OK, what you will need is to place all the images inside a DIV with a fixed width and height and overflow: scroll; (this will cause all the stuff which would overflow to appear in a horizontal scrollbar), the left and right arrows are powered by JavaScript (possibly jQuery I didn’t look) to shift along the scrolling region
There’s no need to use JavaScript at all if you don’t need the arrows at the side and are happy with a regular horizontal scrollbar across the bottom of the section.
Thanks for your help guys i really appreciate it. If i wanted to take it that little step further and include the left and right arrows as displayed in the site I came across. Is it possible to have the right and left arrows (the big one) without the scrollbar?
If i wanted to take it that little step further and include the left and right arrows as displayed in the site I came across. Is it possible to have the right and left arrows (the big one) without the scrollbar?
Just hide the overflow, the javascript will still scroll.