Amos said:I like the fact that (in Firefox anyway) you can select another stylesheet
by selecting View, Page Style, and selecting the other stylesheet. In the
header it is linked as <link rel="Alternate stylesheet"...> - is there any
way to make this selectable by the user clicking on a link?
So Firefox supports alternate style sheets now? Last time I tried
it out seriously, it didn't; though Mozilla proper did. Most browser
implementations of alternate style sheets so far have been pretty
dumb though. Click on a link and you're back to the old style sheet.
D'oh! Even the grand and venerable Opera suffers from this indecorum.
A decent, useful alternative stylesheet mechanism still needs
a cookie-based implementation, with either client- or server-side
scripting. Anything else is a mere parlour trick.
Toby Inkster said:Most browser
implementations of alternate style sheets so far have been pretty
dumb though. Click on a link and you're back to the old style sheet.
D'oh! Even the grand and venerable Opera suffers from this indecorum.
Spartanicus said:A browser solution to that issue would have to be based on tracking the
(sub) domain.
This could screw up a fully separate site that also uses alternate
stylesheets in a subdirectory of the (sub) domain like the common
http://www.isp.com/~user construct.
Toby Inkster said:Think smarter.
When the user chooses an alternate style sheet, then goes to another page,
the browser could check to see if the page also offered the same alternate
style sheet. If so, it should keep using that alternate style sheet
instead of the page's default style. As soon as the browser reaches a page
that doesn't offer the same alternate style sheet, it should start using
the page's default style sheet.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.