Having trouble aligning your WordPress images?

I’m not sure exacty why my images where not being aligned properly in my posts; perhaps it is something inherent in my theme, or something was wonky with the Add Media application, regardless, here is what I did to fix it … I put the section that contained my text and images in a table, and inserted the table via the HTML section of my Write Post editing screen.

EXAMPLE:

This table:

Text Here
Text Here

Is generated by this code:

<table width="100%" border="0">
<tr>
<td>Text Here</td>
</tr>
<tr>
<td><img src="http://hellifiknow.ca/wp-content/uploads/2008/05/image1.jpg" width="48" height="48" align="left" /></td>
</tr>
<tr>
<td>Text Here</td>
</tr>
<tr>
<td><img src="http://hellifiknow.ca/wp-content/uploads/2008/05/image2.jpg" width="48" height="48" /></td>
</tr>
</table>

but of course you would change the image location to your own site and directory.

If you have any comments, suggestions, or alternatives to the above fix, your comments are more than welcome.

So why is so hard to just simply use the Add Media button or the insert image button to insert and image and have it display with the correct alignment?

Hell if I know!

2 Responses to “Having trouble aligning your WordPress images?”

  1. Susie Says:

    I will certainly give this a whirl and let ya know what I find out….soon as I get back this evening. Thanks for the tip!

  2. admin Says:

    Great, Susie. I hope it works out for you. You have a gorgeous site over at Grey Roots: http://grayroots.wordpress.com/

≡ Leave a Reply