Welcome to WebmasterWorld Guest from 54.159.19.75

Forum Moderators: not2easy

Message Too Old, No Replies

Comments in CSS Code

What is the CSS comment delimeter?

     
3:16 pm on Nov 12, 2002 (gmt 0)

Moderator from GB 

WebmasterWorld Administrator ianturner is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 19, 2001
posts:3449
votes: 10


I have now got an application which is being developed by more than one person and it would be nice to be able to put comments into the CSS file so that the CSS tags can be easily read and understood by more than one developer.

How is this done?

3:21 pm on Nov 12, 2002 (gmt 0)

Preferred Member

10+ Year Member

joined:Aug 28, 2002
posts:564
votes: 0


/* comment */
3:24 pm on Nov 12, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Dec 17, 2001
posts:1262
votes: 0


Use slash-asterisk.

/* you can have multiple
line comments */

/* or single line comments */

4:22 pm on Nov 12, 2002 (gmt 0)

Moderator from GB 

WebmasterWorld Administrator ianturner is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 19, 2001
posts:3449
votes: 10


Many thanks
4:30 pm on Nov 12, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:July 22, 2002
posts:1782
votes: 0


Since we are not supposed to post code but to point people into the right direction so that all of us may have more fish for dinner... ;)

I do realize that I left out certain steps in that reasoning and that my version is slightly crooked.

See the CSS2 spec: [w3.org...]

Andreas