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

HTML How to Make a Website Responsive Web Design and Testing Build a Three Column Layout

Sardor Latipov
Sardor Latipov
5,609 Points

My comment is breaking my css code

If I add a comment just like Nick did, it's breaking my css. it is not making my contact page 2 column layout. I remove the comment, it went back to 2 stack column. Same problem happened when I added comment into my contact.html page. So commenting is changing my code...confused

Michael Hulet
Michael Hulet
47,913 Points

Can you post your code with the comments so we can see what's going on?

1 Answer

Steven Parker
Steven Parker
231,275 Points

Without seeing the code, this is just a guess. But remember that the format for comments is different in HTML and CSS. For example:

<!-- This is a comment for HTML -->

And:

/* This is a comment for CSS */

Mixing them up would definitely break things.