WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Getting images to floar around multiple paragraphs and h2's (3 posts)

  1. databell96
    Member
    Posted 2 years ago #

    I'm trying to finish a project with a series of case studies but the logo isn't floating properly around my text. It floats to the right for the first h2 element and the first paragraph. After that, there's a huge space before the next h2 and it just looks awful. Tried all sorts of things to make it work but nothing seems to click. The page/post in question is here. Does anyone know how to properly make this all wrap?

  2. alchymyth
    Forum Moderator
    Posted 2 years ago #

    quite near the start of style.css, the h tags are styled with 'clear:both;' which breaks the float:

    h1, h2, h3, h4, h5, h6 {
    	clear: both;
    	font-weight: normal;
    }

    try to set h2 in your content to 'clear:none;'

    example:

    #content h2 { clear: none; }

  3. databell96
    Member
    Posted 2 years ago #

    Thanks, that really solved the issue perfectly.

Topic Closed

This topic has been closed to new replies.

About this Topic