Wordpress: How to wrap text to appear to the right of image?

11 replies
Hey guys,

Like to ask how to wrap text to appear to the right of the image?

Currently, this is how my text appears...

As you can see, the bottom part of the text is misaligned to the left.


This is how I wish for the text to appear...

#image #text #wordpress #wrap
  • Profile picture of the author jjpmarketing
    You have 2 options.

    Option 1.

    Edit the image in Photoshop or Gimp and extend the canvas of the image to match the length of the text, so the text is forced to the right side like you want.

    Option 2.

    Create two columns in a table via the HTML editor. One for the image and one for the text.

    Either scenario will fix the problem.

    Dennis
    {{ DiscussionBoard.errors[761635].message }}
  • Profile picture of the author charlesburke
    Hi Johnson,

    When I want to insert an image in a blog post, I always enclose it in a simple table with a 5 or 6 pixel cellpadding and - usually - no border. Then I insert a command in the table tag that goes align="left" or align="right" and the picture will go where you want it, with the text wrapping around the table/image. I do this in the HTML mode - it won't work in text mode.

    There's also a CSS style "float" command that also works, but it's been a while, so I've forgotten how to use it. Maybe one of the other members can recall how that one is done.

    Cheers from warm and smiling Thailand,
    Charles
    Signature
    MisterEbook.com
    Special offer for all Warrior authors... MisterEbook.com/warriorsonly.html
    {{ DiscussionBoard.errors[761650].message }}
  • Profile picture of the author Kezz
    If you are creating a post and you insert an image, the text should automatically wrap around it if you align the image to the left when you insert it.

    If this doesn't happen, it might mean your blog's theme doesn't have the necessary code in its stylesheet. Newer versions of Wordpress require you to have a couple of specific lines of code to get your images aligning left and right nicely.

    Make sure you have these lines in your theme's stylesheet and the inbuilt image aligning function should work:

    HTML Code:
    .alignleft {
      float: left;
      width:auto;
    }
    .alignright {
      float: right;
      width:auto;
    }
    {{ DiscussionBoard.errors[761742].message }}
  • Profile picture of the author charlesburke
    Thanks Kezz and BG - I'd forgotten how to use the float command and was too busy to go back and re-learn it. Appreciate the reminder.

    Cheers, Charles
    Signature
    MisterEbook.com
    Special offer for all Warrior authors... MisterEbook.com/warriorsonly.html
    {{ DiscussionBoard.errors[761762].message }}
  • Profile picture of the author Solidsnake
    Banned
    Here is an actual example....



    ...and how the code looks like...



    Hope it helps...
    {{ DiscussionBoard.errors[761914].message }}
  • Profile picture of the author Quentin
    I usually just click on the image go to edit and then advanced. Choose any padding and also alignment.

    Q
    {{ DiscussionBoard.errors[762097].message }}
    • Profile picture of the author Solidsnake
      Banned
      Originally Posted by Quentin View Post

      I usually just click on the image go to edit and then advanced. Choose any padding and also alignment.

      Q
      Sometimes it won't work...
      {{ DiscussionBoard.errors[762098].message }}
  • Profile picture of the author blogginvixen
    I guess I do things the lazy gal way but pasting items in tables inside of a page. Have you given this a thought?
    {{ DiscussionBoard.errors[762168].message }}
    • Profile picture of the author Solidsnake
      Banned
      Originally Posted by blogginvixen View Post

      I guess I do things the lazy gal way but pasting items in tables inside of a page. Have you given this a thought?
      That will only mess up everything... take a look again at my post above with pics of Tom (carton)
      {{ DiscussionBoard.errors[762192].message }}

Trending Topics