Dean Edwards wrote:
That's not really the point. It could be any style setting that is assigned using script.

The real problem is that styles assigned directly using element.style.something (or using the style html attribute) cannot be different for different medias. Print-events are not really a solution for this problem, since you might also want the dynamic styles to be different for e.g. handhelds vs. desktop browsers.

I think that dynamically assigning/removing classes rather than styles is a cleaner separation between style and logic, which is just as desirable for script code as it is for HTML.

/olav

Reply via email to