WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Images in posts: Position problem (5 posts)

  1. miniCarl
    Member
    Posted 4 years ago #

    Alright, I got a little problem with inserting pictures in my posts, however i think the problem lies in my theme, since this problem does not occur when i tried using another theme.

    Here's what it looks like when I insert a picture in the editor:
    http://img.ihack.se/one/81901.jpg

    Alright, looks pretty good, but here's what happends on my blog:
    http://img.ihack.se/one/124321.jpg

    How did that happen? =(

  2. Indent
    Member
    Posted 4 years ago #

    You'll have to asign align left/right to a picture when you want text to float around it.

    If that's not the case you probably want to check your style.css for padding on that img class.

    Hope this helps.

  3. miniCarl
    Member
    Posted 4 years ago #

    I have aligned the picture.
    As I said, it works in other themes.
    And there is no padding on the image, should it be? How?

  4. Indent
    Member
    Posted 4 years ago #

    No, a picture must not have padding or margin. But for floating text around a picture it better have at least one of them. It depends.

    In your style.css (or whatever it is named) it should be something like this:

    img.alignleft {
    margin: 0px 10px 10px 0px;
    padding: 0px;
    display: inline;
    float: left;
    }
  5. miniCarl
    Member
    Posted 4 years ago #

    Thanks Indent, this worked great!

Topic Closed

This topic has been closed to new replies.

About this Topic