Support » Fixing WordPress » image align left but no space between image and text

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • since i have been modereatedi can tell you guys that i use itheme…hereis thelink

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

    any ideas?? pls!

    I’d also like to know.

    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!


Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘image align left but no space between image and text’ is closed to new replies.