• Resolved willboss

    (@willboss)


    Hi

    I just setup a installation of WordPress locally and I have installed a theme but for some reason if I insert an image the text wont wrap around around it. I have tried other templates and everything works fine it just seems to be the one I want (typical). Can anyone suggest what could be wrong?

    Thanks!

Viewing 5 replies - 16 through 20 (of 20 total)
  • Try adding this to the bottom of style.css, after /*End Captions*/

    .aligncenter,
    div.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    }

    .alignleft {
    float: left;
    }

    .alignright {
    float: right;
    }

    Reference material. WordPress Generated Classes

    Didn’t help.

    I’m surprised. I tried it in firebug on your site last night and it worked like a charm. In fact just now, I saw that the image of the little girl with her hand cupped to her ear is now aligned left and word wrapped (it was above the text last night ).

    Did you get a chance to clear your browsers cache or force a reload after the changes – Ctrl+F5 – and revisit it? because it looks pretty good to me.

    It didn’t work right away. Later, when I logged on, I saw that it did work.

    I didn’t know about clearing the cache, or that Ctrl+f5 worked on a Mac platform. I’ll try that next time.

    Does that code work if I add it directly to the HTML code in the text? I’m blogging at HuffPo, and when I add a photo I can tweak the HTML to make if center or flush left, but the text doesn’t wrap.

    Moderator James Huff

    (@macmanx)

    Once you have added the code to style.css, you shouldn’t need to add it anywhere else. Just use the standard controls when posting to align your image left, center, or right, and all should be fine.

Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘Text wont wrap around image’ is closed to new replies.