![]() |
|
![]() |
||
![]() |
![]() |
|
[WWW-HTML Mailing List Archive Home] [Messages By Thread] [Messages By Date] Re: HTML Multiclassing for CSS
From: Ian Hickson <ian@hixie.ch>
Date: Thu, 8 Jan 2004 03:39:56 +0000 (UTC) To: Lenny Domnitser <ldrhcp87@yahoo.com> Cc: www-html@w3.org Message-ID: <Pine.LNX.4.58.0401080338130.27996@dhalsim.dreamhost.com> On Wed, 7 Jan 2004, Lenny Domnitser wrote: > > The only current way to dynamically add a style class > is to replace the existing one, but now a class can be appended. This isn't actually true, you have been able to "multiclass" HTML since 1998 if not before. The "class" attribute is a space separated list of identifiers. For example: <p class="note important"> ... </p> ...with CSS: .note { } .important { } .important.note { } ...and so forth. See: http://www.w3.org/TR/html4/struct/global.html#h-7.5.2 -- Ian Hickson )\._.,--....,'``. fL U+1047E /, _.. \ _\ ;`._ ,. http://index.hixie.ch/ `._.-(,_..'--(,_..'`-.;.'Received on Wednesday, 7 January 2004 22:40:00 GMT |
|
||||||||||||||||