In case anybody hasn't seen it, slashdot/css

R

Roy Schestowitz

__/ [jb] on Tuesday 06 September 2005 21:18 \__

I was about to write a little bit about it later this morning. It would be
strange if not disturbing to have that change 'in place'. Slashdot would
never be the same if it validated. I would totally lose respect for it if
it were standards-compliant.

Roy
 
A

Amos E Wolfe

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?

That way the user could select an alternate stylesheet with different
colours, fonts, etc which may be more to their preference. I can't think of
a practical way I can use it other than a gimmick at the moment, but it's
something that can come in useful!

Any tips?
 
T

Toby Inkster

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.
 
R

Roy Schestowitz

__/ [Toby Inkster] on Friday 09 September 2005 01:09 \__


Why not just register with Slashdot or enable cookies? User customisation is
rather simple that way. You may even be able to provide your own
stylesheet.

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.


This seemed to have worked with Firefox last time I tired. I looked at the
source and there were simply cookies and JavaScript involved... loading the
style using JavaScript-based cookie analysis. Far from ideal, but still...

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.

Totally agreed. Time will mend this.

Roy
 
S

Spartanicus

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.

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.
 
T

Toby Inkster

Spartanicus said:
A browser solution to that issue would have to be based on tracking the
(sub) domain.

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.
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.

With the algorithm I described above, http://www.isp.com/~john/ would
typically not link to http://www.isp.com/corporate_style.css, so the
browser would revert to John's own style for that page.
 
S

Spartanicus

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.

I'm not sure about that. Consider various sites using the same
stylesheets hosted on another server (syndicated content perhaps). Path
information via the base element might pose another problem.
 

Ask a Question

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.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,898
Latest member
BlairH7607

Latest Threads

Top