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
cameroneckelberry2
8,701 PointsQuestion on CSS Commenting
I've noticed in a few files, like a bootstrap theme for example, it will link to a CSS document but the CSS is commented out.
For example:
/*!
* Bootsrap v3.3.2
* blah blah blah
!*/
Which leads to my question, is there a difference between
/*! blabj !*/
and
/* blabj */
?
And if doesn't make a difference, how is it still working?
cameroneckelberry2
8,701 PointsHey thanks Jason, my question might be stupid, but I'm more asking if they ! makes any difference? and if it doesn't, how am I still loading CSS?
1 Answer
Ted Sumner
Courses Plus Student 17,967 PointsEverything between /* and */ are commented out. The ! Is just styling.
cameroneckelberry2
8,701 PointsOk cool, follow up question though:
Why does the bootstrap file still work despite being commented out?
Ted Sumner
Courses Plus Student 17,967 PointsI would have to look in detail, but I bet there is a ton that is not commented out. It is also compiled with Less, so there may be something in there.
cameroneckelberry2
8,701 PointsOk, no worries
jason chan
31,009 Pointsjason chan
31,009 Points/* blabj */That's all you need thats multi line commenting.