WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] imgleft/right problem: unwanted blank space (4 posts)

  1. uhn556
    Member
    Posted 1 year ago #

    Good day!

    I am experiencing the following problem: when I put the image left or right from the text, the text is located as it should be, but if I put br, then the second part of the text will show up under the image (see the pic below). In the editor, the text is located correctly, but on the website it isn't. I'm using the QuickPress theme. Where to search for the cause?

    screenshot here

    Thank you!

  2. petegale
    Member
    Posted 1 year ago #

    My guess that somewhere in the stylesheet there's a clear on the br tag. So something along the lines of:

    br { clear: both }

    So the br element is clearing, pushing the text after it underneath your floated image.

    That's my guess, anyway.

  3. uhn556
    Member
    Posted 1 year ago #

    My guess that somewhere in the stylesheet there's a clear on the br tag. So something along the lines of:

    br { clear: both }

    So the br element is clearing, pushing the text after it underneath your floated image.

    That's my guess, anyway

    Thank you very much! That was the exact reason. The theme had this line in its stylesheet by default

    .entry p {

    clear:both;

    }

    I've deleted the clear:both; and now it works perfectly.

  4. petegale
    Member
    Posted 1 year ago #

    Glad you tracked it down - you're very welcome!

Topic Closed

This topic has been closed to new replies.

About this Topic