• Hi All,

    I just upgrage my wordpress version from 3.0.1 to 3.4.1. But after that, one of my user told that when he creates a new post, he upload the image through the litte icon “Upload/Insert” above the textarea, after the image uploaded, he choose the center alignment and then click the “Insert into post” button, the image represent in the center under the “Visual” tab, but in the frontend the image show in the left, it seems that the alignment doesn’t work.

    Only this user’s account meet this issue. Others are working well. I compared his account with others’, they are all same settings. That’s so weird.

    Did anyone meet this situation before? Any help would be appreciated.

Viewing 5 replies - 1 through 5 (of 5 total)
  • add that image in seperate div and define width : 100%, try this first

    Thread Starter howe12345

    (@howe12345)

    Thanks, but he know nothing about html, only use the wordpresss functionality.

    Moderator cubecolour

    (@numeeja)

    can you post a link to a page with the image incorrectly aligned?

    Thread Starter howe12345

    (@howe12345)

    The difference between the image centered page and not centered page is that the centered page has ‘<p style=”text-align:center;”>’ while the not centered page doesn’t have.

    If I upload and insert the image directly, the image will not be centered. But if I update the image after inserting through the float “Edit” icon above the image, it will be centered.

    if you center a image through richtext box button,
    It remove classes from image tag i.e alignleft or alignright..
    Add text align: center p tag .
    if you left align image : it add alignleft class to img tag
    if you right align image : it add alignright class to img tag
    if you center align image : it didnt add these class . just increase height of the p tag . now take a view in css what actually happening

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Can not center the image in a post’ is closed to new replies.