how do I add text directly under an image?

Discussion in 'HTML Basics' started by Alnilam, Jan 8, 2010.

Tags:
  1. Alnilam

    Alnilam New Member

    I'm having a wee bit of trouble with images on a wordpress blog. Essentially I'm trying to add an image to a post and have the attribution text directly under the image, with the main body of the post wrapping around.

    So far I've gotten the image to align and wrap the post text, but the attribution text is added to the main body of the post.

    Here's the code I'm using...

    Code:
    <div align="right"><img src="blah" align="right" alt="blah" width="240" height="180"></a><em>blah <a href="blah">blah </a>blah </em></div>
    Any suggestions would be really appreciated.
     
  2. mneylon

    mneylon Administrator Staff Member

    Which version of Wordpress are you using?

    The more recent version of Wordpress has an option to include a caption for an image when you insert it. AFAIK it uses some CSS to handle it, but you don't need to worry about the mechanics, as it does it for you
     
  3. Alnilam

    Alnilam New Member

    I'm using Wordpress 2.9.1 and Zemanta to find and embed the images but for some reason when I post anything with a zemanta embed image it changes the code in the post and destroys the formatting, so I'm trying to come up with a way to correct the html so it displays the way I originally intended.
     
  4. mneylon

    mneylon Administrator Staff Member

    If you have a Zemanta account you might need to tweak your settings.

    Zemanta has two options for image insertion:
    - with basic formatting ie. top right
    - with no formatting, so you have to do it yourself

    Though if you're looking for CC licensed images you might find that using Flickr's CC search might give you a better range of options.
     
  5. Alnilam

    Alnilam New Member

    Yeah, I was using the right align and just moving the code down to wherever I want it in the post, which looks perfect in preview but when it's published it changes the code and doesn't wrap the post text around the image.

    Is there not a way to do this with html?
     
  6. mneylon

    mneylon Administrator Staff Member

    You'd probably need to use CSS with the HTML to get the alignment tbh
     
  7. Harry

    Harry New Member

    For that you want to some knowledge about new version of Wordpress,because Wordpress has an option to include a caption for an image. when you can add text directly under an image.
     
  8. Cypher

    Cypher New Member

    Text next to image

    Hi

    Just as a suggestion,use a table and insert image and text,not ideal but it worked for me.
     
  9. DeirdreG

    DeirdreG New Member

Share This Page