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

Code challenge - floats in CSS deep dives

Has anyone else completed the code challenge where you have to float the badge icon left and then the badge description paragraph left as well? In the video tutorial before hand, this should make the text start to the right of the image and not wrap underneath the image. I got the challenge right, but on the "refresh" screen it showed all the badge description paragraph below the image. Has anyone else had this issue? I just want to make sure I was doing it correct and it was just an error with the refresh screen.

1 Answer

Hello Andrew,

I just went through the code challenge again to see if I could replicate what happened to you. All of my description paragraph is to the right of the badge icon. I am not exactly sure what is going on with your code. Could you possibly post the code for us to look at?

Dan

Hi Dan,

Thank you for helping. With fresh eyes this morning, I think it may be that I put in "margin: 0 20px;" instead of "margin-right: 20px;" as it now seems to work okay and I get the desired result.

Thanks again.

Thats great Andrew. I am glad it works now.

Happy to help