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


Box model float challenge

Hello everyone. I am having an issue with the box model float challenge in css. Here is the instructions: Create a new CSS rule that floats the image with the class 'badge-icon' left.

Here is my code: .badge-icon { float: left; }

Here is my result: Bummer! Check the float property in the '.badge-icon' rule

What am I missing here? Thanks for the help.

Hello Jason can you post the link to the challenge.

http://teamtreehouse.com/library/floats strange thing, i refreshed the browser page and now it works fine. passes with flying colors. thanks for the help.

5 Answers

Nick Pettit
Nick Pettit
Treehouse Teacher

Hi Jason,

This could have been a bug. If it occurs again, please email help@teamtreehouse.com with specific details of what you were expecting to happen and then what actually happened. :)

Instead of a single line rule . I tried in the below format it worked for me.

<style> .badge-icon { float:left; } </style>

Hi im having the same problem

try this : .badge-icon { float:left; }

It might work for you james7

Thanks MUZ!

Have a nice day!