WordPress.org

Support

Support » Themes and Templates » [Resolved] H2 tags won't clear images

[Resolved] H2 tags won't clear images

Viewing 6 replies - 1 through 6 (of 6 total)
  • Theme Author Chip Bennett
    Theme Review Admin

    @chipbennett

    I’m not sure I’m following exactly what you’re wanting to do?

    All the headings (h1-h6) are set to clear:both;, so all headings are designed to clear floats. So, if the image is floated, the headings should clear the float.

    If you don’t want H2 headings to clear the floated image, set:

    h2 {
        clear: none;
    }
    jknetdesign
    Participant

    @jknetdesign

    If you see it now I put it back to H2 tags. Yes I do want them to clear.

    Theme Author Chip Bennett
    Theme Review Admin

    @chipbennett

    Yes I do want them to clear.

    They are clearing floats. That’s why the headings are appearing below the image.

    If you don’t want them to clear, you need to apply this style:

    h2 {
        clear: none;
    }

    Then, the image will float inline with the headings.

    jknetdesign
    Participant

    @jknetdesign

    Perfect thank you.

    Theme Author Chip Bennett
    Theme Review Admin

    @chipbennett

    Glad to help! Thanks for using Oenology.

    Andrew Nevins
    Forum moderator

    @anevins

    And Thank you, Chip Bennett, for your contributions to the WordPress community 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Resolved] H2 tags won't clear images’ is closed to new replies.