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!
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

Jason D'Angelo
6,592 PointsBox 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.

Jason D'Angelo
6,592 Pointshttp://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
Treehouse TeacherHi 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. :)

Vyas Pentakota
6,290 PointsInstead of a single line rule . I tried in the below format it worked for me.
<style> .badge-icon { float:left; } </style>

jakealbert
10,118 PointsHi im having the same problem

MUZ140175 Tendayi Musvibe
7,296 Pointstry this : .badge-icon { float:left; }
It might work for you james7

jakealbert
10,118 PointsThanks MUZ!
Have a nice day!
Abhay Sharma
8,287 PointsAbhay Sharma
8,287 PointsHello Jason can you post the link to the challenge.