> Unless your stylesheets are prohibitively large, I suggest you don't > actually switch stylesheets. Instead, set the class of the BODY element > and and add the appropriate classes to your style rules. > > Michael Hmmm.... I'm inheriting the stylesheets from another project, so I don't know if that would work or not, but I can look into it.
I am curious, being quite the CSS newbie, how/if it is possible to change the style rules dynamically. I was under the impression (from having seen what was done before) that I would have to load different stylesheets depending on what style (large font, small font, high contrast, normal contrast, etc...) I wanted my pages displayed. Are you saying that its possible to globally change the style rules programatically somehow? Oh wait a minute... are you suggesting I apply the "large-font-high-contrast" style to the body element from within the application template? I see how that could work. What is the benefit of doing that as compare to the way I've seen it done (on another, PHP, project) of loading one stylesheet or another at the time the page is served? --wpd --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---