WordPress.org

Ready to get started?Download WordPress

Forums

Cannot center images in a post (8 posts)

  1. melissadonovan
    Member
    Posted 6 years ago #

    I have been working on this issue for hours and have finally determined it is a WP flaw. There is literally no way to center an image and make the first line of text after the image start on the next line. I have tried the simple <center> code, the CSS code, the div align code and nothing will get the image to center and place text on the following line.

    This is a serious problem. Any suggestions? Fixes?

  2. Keilya
    Member
    Posted 6 years ago #

    I don't think it's a WP flaw because I'm able to do it with the <center> tag and I'm able to align right with <div align="right">.

    I think your HTML is what's messing up...most likely. =/

  3. melissadonovan
    Member
    Posted 6 years ago #

    I did try the <center> tag several times... I had been able to use it in the past and have only noticed it not working since I switched to 2.5.1.

  4. Billy
    Member
    Posted 6 years ago #

    I have the similar problem. I noticed it not working since I switched to WP 2.6

  5. moshu
    Member
    Posted 6 years ago #

  6. moshu
    Member
    Posted 6 years ago #

    billybrasov,

    don't double and triple post the same in different threads.
    Instead read:
    http://wordpress.org/support/topic/164999?replies=1
    Scroll down and see the code in the Additonal Questions section.

  7. Billy
    Member
    Posted 6 years ago #

    ok man, sorry

  8. buzz
    Member
    Posted 6 years ago #

    Something that worked for me:
    In your style sheet, look for selectors such as "post" or "content" that control the appearance of the post area. Look there for and remove "text-align: left;" if it exists. Redundant I know, since text normally aligns left on its own, but some style sheets do contain it and that property overruled aligncenter in my theme.

Topic Closed

This topic has been closed to new replies.

About this Topic