|Syntactic Confectionery Delight|
Re^2: HTML change for Other Usersby ww (Archbishop)
|on Nov 22, 2004 at 18:28 UTC||Need Help??|
See Ven'Tatsu's below. He is correct and my statement was wrong. (Next para is still true, but less relevant to css vers > 2.0
<sometag class="1" style="2; 3; 4;">
is allowed, but 2, 3 and 4 must be defined css elements. I'n not aware of any good way to make them refer to "roll-your-owns."
UPDATE: However, read also the note at the end of §5.8.3 at http://www.w3.org/TR/CSS21/selector.html
Typical (and ugly) workarounds involve creating compound styles
or the even-uglier use of multiple <span> tags; eg
UPDATE: To my mind the "compound" style declaration above is on the same order of ugliness as the multi-classing in w3c's pages cited in this node and in Ven'Tatsu's. It may, however, be more readable.