W3C home > Mailing lists > Public > www-html-editor@w3.org > January to March 2003

"style" Alternative

From: Kardax <SpamPit@kardax.com>
Date: Fri, 31 Jan 2003 09:18:07 -0800
Message-Id: <200301310918.AA24182972@kardax.com>
To: <www-html-editor@w3.org>

Now that the style attribute is gone, what should I use for situations where the content -is- the presentation?

For example, I wrote a scheduling system that features an HTML calendar that shades the day dynamically based on the amount of activity.  It does this by calculating the relative amount of activity on that day compared to rest, and coming up with an RGB backgound color for the table cell containing the day using a "style" attribute.  It looks great :)  The whole system is compliant with XHTML 1.0, but it appears that the style attribute is gone now.

I'm fearing that my only XHTML 2.0 option is to dynamically generate a style sheet and call the classes in the table, but that will surely be an enormous style sheet.  Is there any good solution to this problem?

--
(This email account is passively monitored at best.)
--
Received on Friday, 31 January 2003 12:23:31 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:17:44 GMT