themes and print css

S

Smokey Grindle

Is there a way to add a print media css style to a theme? so i can have it
like this

<link rel="stylesheet" type="text/css" media="print" href="print.css" />

instead of just a normal css style sheet? basically offer two styles per
theme one for screen display and one for print? thanks!
 
D

David R. Longnecker

Another method, if you're calling your CSS from your web.config and only
want to call a single style sheet would be to use the @media tag. http://www.w3.org/TR/REC-CSS2/media.html#at-media-rule

So... in your standard CSS:

@media print {
h1 { font-size: 12pt; }
p { font-size: 10pt; }
}

@media screen {
h1 { font-size: 12pt; font-weight: bolder; }
p { font-size: 10pt; }
}


Now, you can call your single CSS from your theme and have both mediums for
your CSS.

Hope that helps!

-dl
 

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,756
Messages
2,569,540
Members
45,025
Latest member
KetoRushACVFitness

Latest Threads

Top