Center-aligning Images?

  • Author
    Posts
  • #158599

    psharbaugh
    Member

    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?

    #158971

    carocat
    Member

    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>

    #158972

    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!

    #158973

    timethief
    Member

    @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/

    #159010

    charade
    Member

    where do I find the ‘ extra tools?’ please.

    #159011

    timethief
    Member

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

    #159082

    psharbaugh
    Member

    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.

    #159086

    raincoaster
    Member

    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.

    #159087

    timethief
    Member

    /nod to raincoaster

    @psharbaugh
    You’re welcome. :)

    #159089

    psharbaugh,

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

    #159204

    rrhobbs
    Member

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

    thx
    RH

    #159205

    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>

    #159206

    rrhobbs
    Member

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

    <<< …one would think… ;-)

    here’s the code:

    <p align="center"><font size="2">SEARCH 3,000 + KEYWORDED ONLINE FILM VIDEO / TV PHOTO + EVENT LOCATIONS</font>

    <font size="2"><img src="http://www.locamundo.com/images/remote_portf_butt_01.gif" border="0" alt="search locations!" height="36"width="128"></font></p>

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

    ???

    thx
    RH

    #159207

    rrhobbs
    Member

    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

    #159208

    rrhobbs
    Member

    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

    #159209

    rrhobbs
    Member

    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

    #159210

    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.

    #159211

    rrhobbs
    Member

    >>> 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

    #159212

    No problem and happy blogging.

The topic ‘Center-aligning Images?’ is closed to new replies.