Forums

How to add formatting like clear:both? (2 posts)

  1. Shabbadang
    Member
    Posted 1 year ago #

    I use a lot of images in my blog. Some of them are in portrait orientation and that makes a bit of a problem when the text isn't long enough to make the next image start under the previous and I align the images to the text. What I would like to do is to be able to put the style <div style="clear:both"></div> before each image starts, so that they appear orderly even on the manuscript page during editing.
    I have tried to add this code in the HTML mode, but it is removed as soon as I save the page and then go back to visual mode.
    Ideally, I would like to be able to add this as a custom class to appear in the formattign dropdown. Would that be possible or is there some add-on that can solve this for me?

  2. Shabbadang
    Member
    Posted 1 year ago #

    I can also add that I use Plainscape 1.0.3 theme. I found that in its CSS file (style.css), there is already a class called clear
    .clear {
    clear: both;
    }
    I tried to call upon it in a paragraph tag, like <p class="clear"></p> but it didn't "take".

Topic Closed

This topic has been closed to new replies.

About this Topic