Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Seems Simple, But I Couldn’t Fix It

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #45740
    CodeGraphics
    Participant

    Check [here.](http://codepen.io/codegraphics/pen/aohmG “”)

    If you look at the code, you will see a div with the class of article.
    The .article is the parent of divs with a class of stuff.
    Now, if I remove the height of .article, the whole thing will merge.
    I put the height in the first place when there was nothing in there.
    Now, i have some contents and i want to get rid of the height, but it doesn’t agree.
    What’s the matter?

    #139865
    Paulie_D
    Member

    You are using floats on .stuff.

    Did you remember to use a clearfix?

    #139870
    CodeGraphics
    Participant

    I cleared it. Check the css.

    #139871
    CodeGraphics
    Participant

    Solved. The div with the class of clear was written like this:

    clear{clear:left}

    Instead of

    .clear{clear:left}

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘CSS’ is closed to new topics and replies.