Title: Image alignment/text wrapping problem
Last modified: August 18, 2016

---

# Image alignment/text wrapping problem

 *  Resolved [stgm](https://wordpress.org/support/users/stgm/)
 * (@stgm)
 * [19 years, 7 months ago](https://wordpress.org/support/topic/image-alignmenttext-wrapping-problem/)
 * Please take a look at my just-established blog:
 * [http://www.sbaapproaches.com](http://www.sbaapproaches.com)
 * Under the most recent post, titled “Testing Image Alignment,” I have the following
   code:
 * `<p align="center"><img src="http://www.sbaapproaches.com/hosted/2004-02-05_DR_06501_america-
   west-express_560x.jpg" />
    <i>America Express West Canadair Regional Jet.</i>
 * The intent is for the image to be centered across the page, and the caption to
   appear underneath it, also centered. Obviously, it’s not working! Not to mention
   that the post underneath is starting to the right of that image in the first 
   post.
 * Here’s what I’ve tried so far:
 * 1. `<p align="center">`
 * 2. adding the following to the very end of my styles.css file:
 * `.center {
    text-align: center; margin-left: auto; margin-right: auto; }
 * … and adding “class=”center” in the `<img src>` tag, or by itself before the `
   <img src>` tag.
 * So far, I’ve got nothing. I changed to a different theme, and the result was 
   the same. I’m using WordPress 2.0.4, and Caffeine 0.2 theme.
 * Any ideas? Thank you in advance for any help.

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [Samuel B](https://wordpress.org/support/users/samboll/)
 * (@samboll)
 * [19 years, 7 months ago](https://wordpress.org/support/topic/image-alignmenttext-wrapping-problem/#post-462198)
 * I would suggest using an image manager plugin – you can google for some.
    I use:
   [http://www.soderlind.no/archives/2006/01/03/imagemanager-20/](http://www.soderlind.no/archives/2006/01/03/imagemanager-20/)
 *  Thread Starter [stgm](https://wordpress.org/support/users/stgm/)
 * (@stgm)
 * [19 years, 7 months ago](https://wordpress.org/support/topic/image-alignmenttext-wrapping-problem/#post-462200)
 * I tried the ImageManager, with the same lack of results.
 *  Thread Starter [stgm](https://wordpress.org/support/users/stgm/)
 * (@stgm)
 * [19 years, 7 months ago](https://wordpress.org/support/topic/image-alignmenttext-wrapping-problem/#post-462317)
 * Anyone? Help?
 *  Thread Starter [stgm](https://wordpress.org/support/users/stgm/)
 * (@stgm)
 * [19 years, 7 months ago](https://wordpress.org/support/topic/image-alignmenttext-wrapping-problem/#post-462327)
 * Never mind, fixed it!
 *  [timtak](https://wordpress.org/support/users/timtak/)
 * (@timtak)
 * [19 years ago](https://wordpress.org/support/topic/image-alignmenttext-wrapping-problem/#post-462725)
 * I wish that WordPress would just align the images to the left or right by default.
   Most images in blogs are aligned in this way, that is to say wrapped. I have 
   no difficulty inserting
    hspace=10 align=left or hspace=10 align=right into the“
   img” tag but my colleagues do. I don’t want to make them mess with a plug in 
   either. If anywhere knows where the php code is that is generating the tag then
   please let me know so that I can hack it. If have searched for “img” in upload.
   php and upload-functions.php with no sucess.
 * Tim
 *  [timtak](https://wordpress.org/support/users/timtak/)
 * (@timtak)
 * [19 years ago](https://wordpress.org/support/topic/image-alignmenttext-wrapping-problem/#post-462726)
 * Another post tagged with alignment had the answer.
 * Add the following to your theme’s style sheet (the file ending in .css). I put
   it right at the top.
 * The first bit puts all images on the left, the second bit creates a class so 
   that you can put them on the right occasionally.
 * img {
    float:left; padding-right: 7px; }
 * img.right {
    float:right; padding-left: 7px; }
 * That way images will be automatically on the left and wrapped in text, unless
   you add “class=’right'” in the <img … /> tag in the editor.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Image alignment/text wrapping problem’ is closed to new replies.

## Tags

 * [alignment](https://wordpress.org/support/topic-tag/alignment/)
 * [center](https://wordpress.org/support/topic-tag/center/)
 * [centered](https://wordpress.org/support/topic-tag/centered/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 3 participants
 * Last reply from: [timtak](https://wordpress.org/support/users/timtak/)
 * Last activity: [19 years ago](https://wordpress.org/support/topic/image-alignmenttext-wrapping-problem/#post-462726)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
