Announcement

Collapse
No announcement yet.

text below image

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • text below image

    Have spent a lot of time on this and have viewed many useful postings but none that have solved my problem.

    I want to display a number of images (say 10) , horizontally with text below.

    The text can be wider that the image so some wrapping is also needed.

    There are several hundred photos so I want a 'click for next 10' button.

    All the images are already thumbnails and are roughly the same size.

    I can display the images using
    Code:
    container.appendChild(img);
    Then replace them using
    Code:
    document.getElementById("ref"+i).setAttribute("src",img_file[img_current+i]);
    But can't see a way of placing the text below the image.

    As a novice, any sugestions would be welcome.
Working...
X