• Resolved uhn556

    (@uhn556)


    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!

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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.

    Thread Starter uhn556

    (@uhn556)

    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.

    Glad you tracked it down – you’re very welcome!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘imgleft/right problem: unwanted blank space’ is closed to new replies.