rocketllama
Member
Posted 3 years ago #
If I try to insert images side by side, WordPress stacks them on top of each other. We put images side by side at http://actionflickchick.com/superaction/march-2009-action-aplenty-at-action-flick-chick-hq/ by creating a table in FrontPage, but that creates an extra step. Actually it creates several extra steps if the size, etc., doesn't match up perfectly the first time. So what's the easiest way to make sure images appear side by side?
Hi - Assign a float: left to the image.
This might already exist in your stylesheet. Look for something called
.alignleft
If you don't see it, add this line:
.alignleft { float: left; padding: 15px; }
when you add an image enter the code like this
<img src="...filepath..." class="alignleft" alt="something" />
rocketllama
Member
Posted 3 years ago #
Is it not possible to do this without getting into code? FrontPage was fantastic. I could do everything without code. I could explain to all our other team members how to do a simple task without learning code for every little thing.
It's due to your theme's css in the style.css, likely one of these:
.aligncenter, div.aligncenter { display: block; margin-left: auto; margin-right: auto; }
img.centered { display: block; margin-left: auto; margin-right: auto; }
display: block; forces an image to be on its own line. Don't center images that you want side by side unless they are in a table or a floated div.
rocketllama
Member
Posted 3 years ago #
So what should it say instead of display: block?
rocketllama
Member
Posted 3 years ago #
So what should it say instead of display: block?
rocketllama
Member
Posted 3 years ago #
*sigh* So what should it say instead of display: block?