Previous Message
Next Message

css-discuss archive

Sent by Michael Wilson on 5 September 2003 18:06


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?

E.g.:

P.menuItem {
color: #FF0000
}

Div.menuItem {
color: #FFFFFF
}

A.menuItem {
color: #000000
}

Is this an acceptable practice or might it cause issues for certain
browsers? In my testing I have seen no issues with IE 6 or Netscape 6+.

Thank you for your time.

Best regards, 
Michael Wilson


______________________________________________________________________
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: