Nigell Boulton wrote:
i have built a page http://sportsandclassics.co.uk/stage/news.php
I would like to be able to position the images on the left and write down the page. Which is easy to do, except I am getting the data from a database and would like to be to get the first image on the right and then the next on the left and then on the right etc.
i assume you're looping through in some wsort of while() or for() loop. in this case, instead of looping for every row, make something like this:
start loop
write row1, image aligned left
write row2, image aligned right
increment loop counter by 2, repeat
end loop
you'll have to do some checks to make sure you don't overrun the rows you've got, but this gives you the maximum flexibility.
david