WordPress.org

Forums

Spacing around images in Blog (8 posts)

  1. jenemc
    Member
    Posted 10 years ago #

    I'm putting images in my blog, but even though I enter text for spacing, the text runs right up to my images. How can I fix that? For instance, this is what I enter when I insert an image: <img src="http://www.heligirl.com/leavenworth.jpg" align="left" vspace="20" hspace="20" alt="Where we’ll spend the weekend." />

    Thanks for any help you can offer. :-)

    Jen

  2. yami
    Member
    Posted 10 years ago #

    Add this to your image tag, tweaking the margin size as necessary:
    style="float: left; margin: 1em"

    Vspace, hspace, and align are deprecated HTML attributes. I'm not sure they're even supposed to work in XHTML (which is what WordPress works in by default).

  3. Marc
    Member
    Posted 10 years ago #

    Vspace, hspace, and align will invalidate your page if your concerned about suchn things,

    How about a Polaroid type border around your images? Scroll down half way on this page.

    http://www.mandarindesign.com/2004_11_01_archive.html#110081369514074940

    The instructs are for using the cSS inline but you could just add it as a class in your style sheet.

    You could also try this method, that would add a drop shadow to your image.
    http://www.alistapart.com/articles/cssdrop2/

  4. Lorelle
    Member
    Posted 10 years ago #

    Check out this VERY specific explanation that is time tested and works.

    Wrapping Text Around Images discussion

  5. tomhanna
    Member
    Posted 10 years ago #

    Is there a reason that the link Lorelle provided doesn't work in Firefox?

  6. chuyskywalker
    Member
    Posted 10 years ago #

    Er, not actually a link I suppose...

  7. yami
    Member
    Posted 10 years ago #

  8. Lorelle
    Member
    Posted 10 years ago #

    Thanks yami. I must have slipped on the anchor tag, but I was linking to a discussion but the article in the Codex says the same thing as the discussion, more or less.

    Thanks for catching that for me.

    JAMN HINGERS! ;-)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.