> I do not want to load two style sheets for screen and print media.

Signature
-bts
-Friends don't let friends drive Windows
>> I do not want to load two style sheets for screen and print media.
>
[quoted text clipped - 6 lines]
>
>Download time would be next to nothing.
I thought it might be easier to have everything in one place. But, it's not
working out, so I've abandoned the idea.

Signature
Ed Jay (remove 'M' to reply by email)
Win the War Against Breast Cancer.
Knowing the facts could save your life.
http://www.breastthermography.info
> I find that a separate print style sheet greatly reduces maintenance.
Not necessarily. Depends on how the CSS is organized, I think.
> For one, you don't have to pore through hundreds of lines of screen
> styles looking for each print style.
The problem with that is some styles I often want for both screen and
print. That means either duplicating them in the print stylesheet, or
loading 2 stylesheets. Too much trouble for me to keep that stuff
straight. Besides, I never intermix screen only and print rules.
I prefer to use 1 stylesheet and section it off by media type. I've been
doing it this way for so long I know exactly where to look for certain
rules.
@media screen, projection, print {
global rules like heading fonts, floating images, etc.
}
@media screen, projection {
screen only rules like navigation, background images, etc.
}
@media print {
print only rules, like display:none for navigation, etc.
}
I suppose you could stick handheld in there, too, but I don't bother. If
they get info sans CSS, that's fine with me.
> Download time would be next to nothing.
It is. IIRC, at least some browsers retrieve all stylesheets whether
they need them or not, then apply the applicable rules depending on what
the user requests. It's fewer server calls putting them into 1 external
stylesheet.
If your CSS is huge, however, then you should rethink a few things. KISS
comes to mind. :)

Signature
Berg
Ed Jay - 02 Jul 2008 01:14 GMT
>> I find that a separate print style sheet greatly reduces maintenance.
>
[quoted text clipped - 34 lines]
>If your CSS is huge, however, then you should rethink a few things. KISS
>comes to mind. :)
My intended scheme was based on organization as well. I only write for
screen and print media. My style sheets are alphabetically organized, and I
was considering adding the media print definitions immediately following the
individual screen styles. Unfortunately, that doesn't seem feasible, or at
least make a lot of sense, because it appears that styles for each media
have to be grouped under a media type, such as you have done. That doesn't
accomplish what I wanted to do.
I quaffed a beer and took a nap instead.

Signature
Ed Jay (remove 'M' to reply by email)
Win the War Against Breast Cancer.
Knowing the facts could save your life.
http://www.breastthermography.info