its all css my friend!
I’ll try to describe, I’m a terrible teacher!
Basically, you have your loop, its got your divs laid out. You query 3 posts. To have them side by side in 3 colums, you just lay it out that way in css.
Soooo, normally your loop is started, then the div is layed out like <div id="post-<?php the_ID(); ?>">
or something. You can add in a class to that. like class=”col” or something.
You could then define that class in css to be a certain size. Basically do the math, and make sure it’s less than 1/3 of the width of the parent element. So if you assign a width less than 1/3 the parent element, 3 columns will fit side by side.
Finally, after defining the element, and defining it as 1/3 the width… you float it left with float:left
if you query 3 posts, have them set to a width less than 1/3 of the parent container and float them all left, the first floats left, the second floats left, but stops to the right of the first, and the third floats left, but stops to the right of the second. So they all line up!
Just remember, the total width of the 3 columns, plus if you give any margins, must be less than the total width of the parent element. You can set the width in px, or %, so 300px x 3 would fit inside a parent container larger than 900px, or something like 30% would work too. You just have to remember any margins or padding assigned to the elements, or the parent container