Support » Themes and Templates » Images in posts: Position problem

  • Resolved miniCarl

    (@minicarl)


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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Indent

    (@indent)

    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.

    miniCarl

    (@minicarl)

    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?

    Indent

    (@indent)

    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;
    }
    miniCarl

    (@minicarl)

    Thanks Indent, this worked great!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Images in posts: Position problem’ is closed to new replies.