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

General Discussion

I really do not understand how to include my code in a forum post.

The video suggests using codepen for longer chunks but pasting from codepen does not give you that black box with the color-coded code.

3 Answers

Hi Erin,

Posting code can be a little confusing at first.

Before the first line of your code, add 3 ` symbols (probably difficult to see.. the symbol to the left of you "1" key on your keyboard. To help the system with the colors, add the language you are posting... like below (do not use the parenthesis):

(```Java)

Do the same after the last line of your code, without the language.

Go ahead and try it here. Let me know if you have any more questions.

Hi Jon,

That is what I mean. When I open the site in the browser the css for the class contact-info is not being applied.

I don't think your answer is correct though. It's not part of the tutorial and the main.css file contains all the css for the whole website, include the about and contact pages.

You are correct, I didn't look closely enough at your main.css file before attempting to answer.

I haven't taken that course yet. If you haven't already done so, go ahead and make a new forum post that specifically asks about it and hopefully someone that has taken that course will be able to help. Posting your two files like you did above will help a lot when someone else tries to debug your code.

Thanks Jon