• When I insert an image into a table, I can’t get it to center in the table. I’ve tried all of the image properties, but nothing. Set the cell properties to center, nothing. I just cannot get that picture to center. What am I missing?

    Ok, when I switch to the basic theme, the images are centered.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Make the text-align CSS attribute of the cell to ‘center’ should do the job.

    And also make sure the image doesn’t have floating CSS attribute (float left or write).

    BTW, can I see your blog, so I can give more precise solution?

    Thread Starter beauryker

    (@beauryker)

    you want the page address?

    rykergunsandammo.com

    You have something like this in your CSS definition:

    div.post table td {
       text-align:left;
    }
    

    Change or delete that CSS definition.

    This is causing the image to always left aligned.

    And also when placing the image, don’t specify alignleft in the image uploader screen. And also don’t specify align=”left” in your HTML image tag.

    Add the image in between the code below. (NOTE: Make sure that you have a copy of the file you are attempting to edit)

    <div align="center"> enter the code of the image here </div>

    Thanks

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

The topic ‘Centering Images In Tables’ is closed to new replies.