Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS CSS Layout Basics CSS Layout Project Column Layout with Media Queries

Saqib Ali
Saqib Ali
3,686 Points

Clearfix didn't work...

Hi there as per the instruction, Clearfix still didn't work unfortunately.

http://codepen.io/saqib_ali/pen/vKRqwp?editors=1100

I'm obviously missing something here.

Thank you in advance.

1 Answer

jag
jag
18,266 Points
  <div class="container clearfix">
    <div class="secondary col">
        <h2>Welcome!</h2>
        <p>Everything in this city is worth waiting in line for.</p>
        <p>Cupcake ipsum dolor sit. Amet chocolate cake gummies jelly beans candy bonbon brownie candy. Gingerbread powder muffin. Icing cotton candy. Croissant icing pie ice cream brownie I love cheesecake cookie. Pastry chocolate pastry jelly croissant.</p>
        <p>Cake sesame snaps sweet tart candy canes tiramisu I love oat cake chocolate bar. Jelly beans pastry brownie sugar plum pastry bear claw tiramisu tootsie roll. Tootsie roll wafer I love chocolate donuts.</p>
    </div><!--/.secondary-->
    </div> <!-- You are closing the container too soon, just removing this div should work-->
Saqib Ali
Saqib Ali
3,686 Points

Ah cheers Jag, really appreciate the heads up!