image align left but no space between image and text (5 posts)

  1. france1972
    Posted 7 years ago #

    i have got crazy trying to solve this issue. i recently upgrade to wp 2.5.1 and everything is ok. i love it a lot. I have a little issue. when i align an image on the left the text wrapping around it is very close, almost attached to the pic. how can i give it more space? I am going to write my style.css...i hope to get some support now since i already wrote two topics on different issues but i got no answer (kinda strange for a support forum)...thanks to whoever will reply to me

    [long code moderated]

  2. france1972
    Posted 7 years ago #

    since i have been modereatedi can tell you guys that i use itheme...hereis thelink http://www.ndesign-studio.com/file/itheme-1-1.zip

    please anyone willing to help??
    i can help you because i know thatwp 2.5 use style=”float:left;”, instead of align=”left” which is used in my theme...pls any help???

  3. france1972
    Posted 7 years ago #

    any ideas?? pls!

  4. theonomo
    Posted 7 years ago #

    I'd also like to know.

  5. Technokinetics
    Posted 7 years ago #

    As this is to do with the presentation of your site, you should really do this through your style.css theme file. Assuming that your post content is wrapped in <div class="postContent">, add this line (anywhere will do, but near related lines is best):

    .postContent img { margin: 10px; }

    This will add 10 pixels of space all around the images within your post content. To change the amount of space, change the number 10.

    Unfortunately, when you add an image through the media uploader, WordPress adds instructions that can conflict with this. If you go to the Manage > Post screen for your post, switch to the code view, and locate the image code <img src="... />, you may see some margin / padding declarations there. The best thing to do is to delete these (just the margin and padding declarations) so that you can control this through your stylesheet (i.e. your style.css theme file).

    Hope that makes sense!


Topic Closed

This topic has been closed to new replies.

About this Topic