Hi - I have some js code that brings in random images and text (captions). The captions are centered under the images and would like them left aligned -- can anyone tell me how I might edit the
span.innerHTML =Shuffled[i].text;
to make the text left aligned under the image? Thanks in advance if you can answer it!
{
var td = document.getElementById("title"+i);
var link = td.getElementsByTagName("a")[0];
var image = link.getElementsByTagName("img")[0];
var span = link.getElementsByTagName("span")[0];
image.src = ibase + Shuffled[i].image;
link.href = urlbase + Shuffled[i].href;
span.innerHTML =Shuffled[i].text;
image.alt = Shuffled[i].text;
}