Forums

WP keeps stripping out my break and paragraph tags. (3 posts)

  1. sidianmsjones
    Member
    Posted 2 years ago #

    I'm trying to line up a few small pics in a vertical fashion, and have text sit to the right of each pic like this: Picture

    But every time I go through and space it all out on the page, I save it and then on the page and the editor the pictures and text are all jumbled up!

    How can I get around this? Is there an easy way I'm missing or do I have to get some plugin that stops WP from stripping br and p tags?

  2. Dene
    Member
    Posted 2 years ago #

    Hi

    This is usually caused by the text being shorter than the size of the image.

    The easiest solution is to right align the image. Since it is the tallest object, the next paragraph will be relative to it.

    If that isn't what you want, then create a table and insert the images and text into rows.

    Something like this:

    <table>
    <tr>
    <td>image 1</td>
    <td>text for the first image</td>
    </tr>
    <td>image 2</td>
    <td>text for the 2nd image</td>
    </tr>
    </table>

    Hope that helps.

  3. sidianmsjones
    Member
    Posted 2 years ago #

    Hey cool. This sounds helpful. Thank you.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.