WordPress.org

Ready to get started?Download WordPress

Forums

Clearing Formatting and Line Breaks (6 posts)

  1. Jon Griffith
    Member
    Posted 5 years ago #

    While posting, if I create a paragraph, and I "left-align" an image, or "right-align" an image to the first letter of the paragraph, the text properly wraps around the image. If the text of the paragraph is just a few words that never use up the height of the picture, and therefore never wrap, how do I, after the last word of the paragraph, clear the formatting so I can start a new paragraph with an aligned left, or right image, without the pictures aligning to themselves?

    I have been adding br clear="all" after the text, but when I save the post, the code is written, but is also stripped from the editor for the next edit.

    How do I force a format clearing?

  2. esmi
    Forum Moderator
    Posted 5 years ago #

    You'd need to use the HTML tab for post creation/editing - not the Visual Editor. If the image is left-aligned, the next paragraph should be preceded by <br style="clear:left;" />. If it's right-aligned, use <br style="clear:right;" />.

  3. Jon Griffith
    Member
    Posted 5 years ago #

    When I do that, it works, but if I come back to the page to edit, the styling code has been eliminated, forcing me to add it every time I update a page.

  4. Trestkon
    Member
    Posted 4 years ago #

    Sorry to bump this back up, but I'm having the exact same problem and was wondering if there was a solution.

  5. alism
    Member
    Posted 4 years ago #

    Err, yes...

    You'd need to use the HTML tab for post creation/editing - not the Visual Editor.

    Don't use the visual editor at all to edit those posts. Not even for a quick sneaky peek. The second you do, it'll strip any additional code right out.

  6. martindickson
    Member
    Posted 4 years ago #

    Err, yes...

    You'd need to use the HTML tab for post creation/editing - not the Visual Editor.

    Don't use the visual editor at all to edit those posts. Not even for a quick sneaky peek. The second you do, it'll strip any additional code right out.

    Err, Why?

    Most code stays so why not <br clear="all"> as Arretx asked.

Topic Closed

This topic has been closed to new replies.

About this Topic