Alternate stylesheets can be set up in two different ways:
1) Each stylesheet is has the same IDs, classes and tags with which different styles
are applied to each.
EX: <link rel="stylesheet" href="somestyles.css" />
<link rel="alternate stylesheet" href="someotherstyles.css" />
2) A central stylesheet with default styles for all the IDs, classes, and tags and
several alternates that have some or all the same IDs, classes, and tags as the
central stylesheet that take precedence over the central stylesheet's styles when the
alternate stylesheet is loaded after the central stylesheet.
EX: <style type="text/css">@import "somestyles.css"</style>
<link rel="stylesheet" href="someotherstyles.css" />
<link rel="alternate stylesheet" href="someotherstylestoo.css" />
Its a little confusing at first, but it you look at the stylesheets themselves it will
tell you how a site is handling the alternate stylesheets.
Personally, I use the second method when I use alternate stylesheets. If you need more
help, just email me off-list and I'll be glad to help.
>
> From: Justin French <[EMAIL PROTECTED]>
> Date: 2004/05/20 Thu PM 08:48:58 EDT
> To: [EMAIL PROTECTED]
> Subject: [WSG] alternate style sheets expert here?
>
> Do we have an expert on alternate stylesheets in the house?
>
> I'm a little confused.
>
> What I'd like to do is link or @import a few base style sheets for the
> general (default) site design first. Then on top of that I'd like to
> link to a series of alternate style sheets that ADD TO those base
> styles.
>
> Seems easy enough, and the code on http://www.simplebits.com/ seems
> like a good starting place, but when I look at his alternate style
> sheets, they're not *alternate*, they're *alternate additional*, in
> other words, the alternate style sheets act as a group of alternatives
> (of which 0-1 can be selected) which will be applied *in addition to*
> the base style sheet.
>
> Is this a reasonable summary? Can someone provide a clearer definition?
>
>
> To add to the confusion, I'm hoping to tie this all into a PHP session
> and membership preferences, but that's another story all together :)
>
> ---
> Justin French
> http://indent.com.au
>
> *****************************************************
> The discussion list for http://webstandardsgroup.org/
> See http://webstandardsgroup.org/mail/guidelines.cfm
> for some hints on posting to the list & getting help
> *****************************************************
>
>
Michael Rainey
Blog: http://raineym.dyndns.org/
Resume: http://mrainey.dyndns.org/
*****************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
*****************************************************