Right or left align in wordpress with some space

Discussion in 'HTML & Website Design' started by walterj, Jan 14, 2009.

  1. #1
    I am currently using this code to right or left justify with float in wordpress, how do I put some space around the graphic so that it isn't right up against the image.

    <p style="float: left"><img src="image goes here" alt="" /></p>

    Thanks
     
    walterj, Jan 14, 2009 IP
  2. camp185

    camp185 Well-Known Member

    Messages:
    1,653
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    180
    #2
    If you are using Wordpress you should be able to do that by simply editing the post.

    Get in edit mode, and click on the picture within the post. Then on top you should see two tabs. One is Edit Image, one is Advanced Settings. Using Edit Image tell it how you want to align. Then using Advanced Settings tell it how much space you want around it under Image Properties.
     
    camp185, Jan 14, 2009 IP
  3. walterj

    walterj Peon

    Messages:
    132
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    That works, but how do you keep the text from smashing right up against the photo. It would be nice to have a little whitespace for readability.
     
    walterj, Jan 14, 2009 IP
  4. walterj

    walterj Peon

    Messages:
    132
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Actually what camp185 said worked fine. The visual view shows the text right up against the photo, but when I preview it, it works fine. Thanks.
     
    walterj, Jan 14, 2009 IP