473,322 Members | 1,408 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

themes and print css

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!
Oct 2 '06 #1
2 1922
Sure can.

http://www.w3.org/TR/html4/present/styles.html#h-14.4.1

Just as you typed it.

(from W3 link)
<LINK rel="stylesheet" media="print" href="corporate-print.css" type="text/css">
<LINK rel="stylesheet" href="techreport.css" type="text/css">

-dl

--
David Longnecker
Web Developer
http://blog.tiredstudent.com
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!

Oct 2 '06 #2
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

--
David Longnecker
Web Developer
http://blog.tiredstudent.com
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!

Oct 2 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Full Decent | last post by:
Hey again! In my quest to make proper use of OO PHP I would like to ask for a critique of the current method of doing themes in the Camera Life (http://fdcl.sf.net) software and see if an OO...
5
by: Jan Hyde | last post by:
I keep reading that there should be a couple of built in themes in the directory ...\Microsoft.NET\Framework\v2.x.xxxxx\ASP.NETClientFiles\Themes I've yet to see any machine with this 'Themes'...
3
by: johannblake | last post by:
I'm reading up on Themes and Master Pages in ASP.NET 2.0 but I cannot seem to understand what the difference between the two are. Do Master Pages essentially end up doing what Themes do? Is...
4
by: Sean | last post by:
My experience now working with master pages on and off for 6 months is that they can be very dangerous when working with themes. One example in particular is the changes I made to my banner menu...
6
by: Clinton Farleigh | last post by:
Hi, I was going to ask a question, but I think I've answered it so now I am going to rant about how crappy ASP.NET themes are instead. As I've indicated above, my problem today is with themes....
3
by: WT | last post by:
Hello, I need to list all available themes for a .NET app, is there any API in ..NET2 for this or should I explore the folder files using IO methods ? Thanks for indication CS
11
by: New Bee | last post by:
Hi, I have been looking at Themes and Skins today and now resonably understand how they work at a ground level. But I have a couple of questions. 1. ) StyleSheetTheme I dont understand...
2
by: mike | last post by:
Hi. I am having trouble grasping the concept of applying a consistent theme to an ASP.net website. I didn't used to like ASP because it was too hard to apply a theme from a common theme folder like...
1
by: archana | last post by:
Hi all, I have just using dot net studio 2005. I am careating one theme. Here global themse are getting stored at 2 location. \Microsoft.NET\Framework\<version>\ASP.NETClientFiles\Themes....
1
by: Cramer | last post by:
Using 3.5: Suppose I have defined 20+ themes (including multiple graphics, ..skin files, and css files per theme), and I want to make those themes *available* to all the Web sites on my Web server....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.