Need help? Check out our Support site, then


Center-aligning Images?

  1. I’m not a WordPress newbie by any means, but I’m perplexed by how to center images at the top or bottom of a post. Align right and flow text around it? Got it. Align left? No problem. But I’ve never been able to get either the “Middle” or “Absolute Middle” commands to do anything whatsoever to my image. And centering it in the middle at the the top of bottom of a post has, so far, eluded me completely. Anyone have the solution?

  2. It always helps to link to your blog so it's easier to help you, especially depending on themes.

    So you want images at the top and bottom of the post? Maybe I misunderstand you, but placing this at the beginning/end of the post should do it?

    <p style="text-align: center"><img src="imagelink here" /></p>

  3. good day to you psharbaugh, :D

    um, did you try clicking middle alignment?

    like, make sure there's no text around the image. and then select the image. and then click middle alignment tab. that does the trick usually, unless you have a glitch!

  4. @psharbaugh
    G'day
    Please look at the illustration of the visual rich editor icons at this link. The particular icons you are looking to align both text and images with are 7, 8 and 9 http://faq.wordpress.com/2006/05/15/what-do-all-the-icons-mean/

  5. where do I find the ' extra tools?' please.

  6. Click on icon 16 and the advanced toolbar will appear. :)

  7. Thanks all for the help. The center alignment tab did it - which I thought was only for centering text. For what it's worth, clicking on the "tree" and then clicking on either "middle" or "absolute middle" has absolutely zero effect on an image.

  8. It changed a little while ago, around the time they made the tag/category switch; I always do both now (center alignment tab AND in the image properties) just in case they switch it back at some future time.

  9. /nod to raincoaster

    @psharbaugh
    You're welcome. :)

  10. psharbaugh,

    thanks for thanking!
    and i am glad your problem is solved! :D

  11. howbout making an image in a text widget align in the center?

    thx
    RH

  12. Without link:<p align="center"><img src="http://imagelinkhere" alt="" title="" /></p>

    With link: <p align="center"><a href="pagelinkhere"><img src="imagelinkhere" alt="" title="" /> </a></p>

  13. >>> With link: <p align="center"><a href="pagelinkhere"><img src="imagelinkhere" alt="" title="" /> </a></p>

    <<< ...one would think... ;-)

    here's the code:

    <p align="center"><font size="2"><strong>SEARCH 3,000 + KEYWORDED ONLINE FILM VIDEO / TV PHOTO + EVENT LOCATIONS</strong></font><br /> <br /><font size="2"><a><img src="http://www.locamundo.com/images/remote_portf_butt_01.gif" border="0" alt="search locations!" height="36"width="128"></a></font></p>

    Here's the result: http://www.locationfiles.com (left sidebar, top left)

    ???

    thx
    RH

  14. removed the unneeded font tag on the image (...duh...) (there was some text in that snippet at one time) but it made no difference either way in the alignment of the image.

    Odd how the text will align but the image won't?

    thx
    RH

  15. My guess is the theme is somehow overiding the image alignment but I haven't endeavored to dive into that - I dont mind the way other widgets on the page seem to align to the right (it's probably default behavior, I wouldnt have gone in previously and messed with this theme's css and I just checked I haven't specifically align any other text)

    As a side note, I have discovered that (specifically with regard to using Geopress) I can get Geopress maps to align in the center editing the code in the post to:
    <span><center>INSERT_MAP</center></span>

    not sure how kewl it is to use that "span" tag, I get the impression it is oft-mis / over-used? In any case it seems to hold the fort together for this ...

    It seems to work best if I leave a line space between the last line of text in the post and the map code, if WP starts trying to use "palign" it tends to hork everything up.

    ahh... duct tape and glue... :-)

    -RH

  16. My guess is the theme is somehow overiding the image alignment but I haven't endeavored to dive into that - I dont mind the way other widgets on the page seem to align to the right (it's probably default behavior, I wouldnt have gone in previously and messed with this theme's css and I just checked I haven't specifically align any other text)

    As a side note, I have discovered that (specifically with regard to using Geopress) I can get Geopress maps to align in the center editing the code in the post to:
    <span><center>INSERT_MAP</center></span>

    not sure how kewl it is to use that "span" tag, I get the impression it is oft-mis / over-used? In any case it seems to hold the fort together for this ...

    It seems to work best if I leave a line space between the last line of text in the post and the map code, if WP starts trying to use "palign" it tends to hork everything up.

    ahh... duct tape and glue... :-)

    -RH

  17. Well, you are self-hosted and using a theme we are not familiar with here, so you should perhaps direct your inquiry over to the http://wordpress.org/support forum since they are familiar with the stand-alone wordpress software you are using. Sorry I didn't see that before.

  18. >>> Well, you are self-hosted and using a theme we are not familiar with here, so you should perhaps direct your inquiry over to the http://wordpress.org/support forum since they are familiar with the stand-alone wordpress software you are using. Sorry I didn't see that before.

    <<< well said and sorry - I just noticed it myself...

    thanks and adios

    RH

  19. No problem and happy blogging.

Topic Closed

This topic has been closed to new replies.

About this Topic