How to clear the alignment of an image after 1 sentence?

  • Unknown's avatar

    I want one sentence next to my image which works with the left alignment. But after this sentence I want to clear is to start a new paragraph left aligned UNDER the image. Is there a way to do this correctly?

  • Unknown's avatar

    Hi spellenmolen,

    There may be other ways to do this but this is how I would do it.
    After I added the paragraph and images using the visual editor I would switch to the text editor and make things look like this.

    <img class="alignleft size-medium wp-image-31" src="<img url>" />First Paragraph 
    
    <p style="clear: both;">Second Paragraph</p>

    So on the paragraph that I want to start under the image I would manually put in the <p> tags and add the style clear: both;

    This should accomplish what you’re looking for.
    Let me know if it works for you.

  • Unknown's avatar

    This is what I add after the text that is next to an image. I use this when I do how to do Posts

    <div style="clear:both;"></div> - clear and start over after an image - survives Visual Edit Mode

  • Unknown's avatar

    both thank you very very much!

    I tried the 2nd solution (by auxclass) and it worked immediately!

    Thanks again!

  • The topic ‘How to clear the alignment of an image after 1 sentence?’ is closed to new replies.