Previous Message
Next Message

css-discuss archive

Sent by Julian on 5 September 2003 21:09


As I understand it, this is technically valid although potentially confusing. I have heard of the
terms "regular class" and "generic class" used to describe classes where an HTML element is
specified within the CSS rule (p.classname) whereas a generic class does not specify an HTML element
such as .classname. Because of the specificity, each instance of the class name in your example are
considered to be separate.

HTH,

Jules

Original Message -----------------------
Hi,
The following question may be a very fundamental, but I have never had a
reason to consider it until now. It is possible to create 2 or more classes,
within a single stylesheet, that use the same name, but that contain
different attributes and that apply to different elements?

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread:

Possibly related: