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 trialSardor Latipov
5,609 PointsMy 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
1 Answer
Steven Parker
231,269 PointsWithout 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.
Michael Hulet
47,913 PointsMichael Hulet
47,913 PointsCan you post your code with the comments so we can see what's going on?