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

Design

Code challenge- Creating flexible margins. System glitch?

Hello everyone. I seem to be having alot of technical difficulty in a few code challenges. I am working on Building a responsive website. In a previous challenge, I was converting widths to percentages. The answers i was providing were showing up as wrong but based on the formula it was correct. A few days later i logged in and entered my same answers and then it took. Now i am faced with the same situation. In the section "Creating Fluid Foundation". The code challenge it is asking me "Using .icing as your context, convert the margins on .cake from pixels to percentages". Cakes margin is 10px and icings context is 500. based on the formula i have learned i did... Target divided by Context = Result. so 10px divided by 500=0.02 carry the decimal to places to the right and it =2% I wrote out my answer exactly as follows... Margin:2%; /10px / 500 =0.02/ I'm not understanding how this is incorrect and this is very frustrating. Is it another system glitch? Please help, It would be greatly appreciated.

1 Answer

Kevin Korte
Kevin Korte
28,149 Points

It could be your comments that are screwing it up. A CSS comment is /* your comment */. It appears you have forgotten the asterisk.

Thanks for answering Kevin. I meant for my post to show the asterisk my mistake. I've been including it in my answers on the code challenge tho and its still marking the answer as wrong I don't know what else to do. :(

I ended up getting past this. It seems that there are several answers to the questions. I entered 2 different answers and it took. I then logged off and back on twice and the format of the question changed.