PCMech Forums

PCMech Forums (http://www.pcmech.com/forum/)
-   Internet, Web Applications, & The Cloud (http://www.pcmech.com/forum/internet-web-applications-cloud/)
-   -   CSS - media="print" (http://www.pcmech.com/forum/internet-web-applications-cloud/112045-css-media%3D-print.html)

BlindFish 09-30-2004 04:38 AM

CSS - media="print"
 
Hi,

I'm making use of the rather cool 'media' functionality of CSS2 so people can get much better printouts from my webpages but I have one concern... I know that older browsers don't support 'media' but I'm worried that they'll know enough CSS to interpret the 'display: none' property I've applied to superfluous elements (in the printout) such as navigation and *not* render them on screen.

I've had a little look online for advice on this issue but it's not altogether clear... I'm currently linking to the CSS file with this:

Code:

<link href="/styles/print.css" rel="stylesheet" type="text/css" media="print">
But it seems some people suggest using an @import statement to fool older browsers. e.g.:

Code:

<style type="text/css" media="print">
          @import url('/styles/print.css');
        </style>

Can anyone clarify what will happen with the first bit of code? Will it be ignored by older browsers or will they use the styles in the link stylesheet on the screen render? I don't have any old browsers to test this on - should I download some or does anyone have a suggestion on how I could test this?

Cheers

BlindFish

glc 09-30-2004 09:30 AM

Can't help you with the coding, but if you want older browsers, go to http://browsers.evolt.org/


All times are GMT -5. The time now is 09:14 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2