How to make post content from each post display within the same div

Having 3 divs for the text content is not a problem, but they shouldn’t be contained by the same div as the images…

You can have:

<div id="container">
    $count = 1;
    while loop
        <img id img$count..>
        <div id div$count...>
        $count++;
    Endwhile
</div>

You then position the divs absolutely and hide them. Click on img1 shows div1, etc. The code example is very simplified, writing from my phone, but should be enough hopefully to get the logic….