I'm kinda stuck as to how I can do this. What I'm trying to do is extract info from a database (which will give me 4 variables, including the picture).

Then using css I'm trying to do the following:

Image A $var1 Image B $var1
Image A $var2 Image B $var2 etc. just as in figure image A
Image A $var3 Image B
Image A $var4 Image B

Image C -> and so forth -> image F
Image C
Image C
Image C

By using float I've been able to split the images, but the text gets wrong all the time. Either it's under the picture, or over etc.

Sorry if my explaining is a little strange, it's late and css is really not my field