Putting HTML comments in CSS style definitions?

Subject: Putting HTML comments in CSS style definitions?
From: "Rowena Hart" <rowena -at- vocalscape -dot- com>
To: "TECHWR-L" <techwr-l -at- lists -dot- raycomm -dot- com>
Date: Mon, 5 Mar 2001 09:41:22 -0800


This is a pretty simple question, but I haven't
seen the answer in any online CSS guides I've
read.

Is it okay/advisable to use HTML comments in your
CSS style definitions? I'm using a pre-defined
set of CSS styles created by a contractor, but
I'm finding it difficult to understand when to
use styles with similar properties. As you can
imagine, this problem is compounded if more than
one person is applying the CSS styles and the
style usage is ambiguous.

For example, it would be nice to have a comment
explaining when to use the style "bodysmall" in
an online document. Embedding a hidden comment
in the style definition (as shown) seems like a
good idea:

.bodysmall
{
COLOR: Black;
FONT-FAMILY: Verdana, arial, helvetica, sans-serif;
FONT-SIZE: 10px;
LINE-HEIGHT: 24px;
TEXT-ALIGN: left;
TEXT-DECORATION: none
}
<!-- Use .bodysmall for the body text in
captions. -->

Is this legal in a CSS style definition? If
not, is there any other way to embed a comment
in a CSS style definition?

Ta,

Rowena

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Rowena Hart
Senior Technical Writer
Yahoo! Messenger ID rowena_hart

VOCALSCAPE Communications Inc.
Unit 203 - 3991 Henning Drive
Burnaby, BC Canada V5C 6N5
Tel:(604) 437-VOIP (8647)
Fax:(604) 437-8646
http://www.vocalscape.com
"The Future is Hear.com"
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Develop HTML-Based Help with Macromedia Dreamweaver 4 ($100 STC Discount)
**New Dates!!** San Francisco (Apr 16-17), San Jose (Mar 29-30)
http://www.weisner.com/training/dreamweaver_help.htm or 800-646-9989.

IPCC 01, the IEEE International Professional Communication Conference,
October 24-27, 2001 at historic La Fonda in Santa Fe, New Mexico, USA.
CALL FOR PAPERS OPEN UNTIL MARCH 15. http://ieeepcs.org/2001/

---
You are currently subscribed to techwr-l as: archive -at- raycomm -dot- com
To unsubscribe send a blank email to leave-techwr-l-obscured -at- lists -dot- raycomm -dot- com
Send administrative questions to ejray -at- raycomm -dot- com -dot- Visit
http://www.raycomm.com/techwhirl/ for more resources and info.


Previous by Author: Building help systems for ASP products
Next by Author: Building help systems for ASP products
Previous by Thread: Re: New TECHWR-L Poll Question
Next by Thread: Re: Putting HTML comments in CSS style definitions?


What this post helpful? Share it with friends and colleagues:


Sponsored Ads