WordPress.org

Ready to get started?Download WordPress

Forums

Oenology
[resolved] H2 tags won't clear images (7 posts)

  1. jknetdesign
    Member
    Posted 1 year ago #

    http://growersice.com/

    See the titles in bold I tried H2 tags but they positioned below the image. What class do I edit in the css to get the text to wrap the image so I can go back to header tags?

  2. Chip Bennett
    Theme Review Admin
    Theme Author

    Posted 1 year ago #

    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;
    }
  3. jknetdesign
    Member
    Posted 1 year ago #

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

  4. Chip Bennett
    Theme Review Admin
    Theme Author

    Posted 1 year ago #

    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.

  5. jknetdesign
    Member
    Posted 1 year ago #

    Perfect thank you.

  6. Chip Bennett
    Theme Review Admin
    Theme Author

    Posted 1 year ago #

    Glad to help! Thanks for using Oenology.

  7. Barrel rider
    Volunteer Moderator
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic