Re: HTML Multiclassing for CSS

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 UTC