Page is a not externally linkable
- Code, Content, and Presentation
-- CSS
---- Your Way Wanted: How do you comment in CSS and Why?


victor - 4:08 pm on May 19, 2007 (gmt 0)


My HTML templates and CSS files are heavily commented.

But only on the dev server. When uploaded to live, the comments are automatically stripped out. As is most of the whitespace.

That gives me, behind the scenes, some extensive in-line notes while putting the smallest/fastest files up for serving to the world.

And stops any embarrassing/rude design comments slipping into the public arena.

I'd've thought everyone does that. If you have a CMS (or whatever) that does not strip comments when uploading to a public environment, why not try another one?


Thread source:: http://www.webmasterworld.com/css/3343059.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com