
Do you train Kung Fu?
Or know someone who does?
Then check out KungFuPeople.com
Mobile version of this page
Previous:
Ask Yahoo "What state do the Simpsons live in?"
Next:
My new years resolution 2006
Printer friendly and PDF version of every page
Find print statements in Python code
CSS selector bug in IE?
Printer usability problem
Tip: Printer friendly pages with Page Templates in Zope
The problem with CSS
My favorite CSS Zen Garden design
Ask Yahoo "What state do the Simpsons live in?"
Next:
My new years resolution 2006
Related blogs
Practical CSSPrinter friendly and PDF version of every page
Find print statements in Python code
CSS selector bug in IE?
Printer usability problem
Tip: Printer friendly pages with Page Templates in Zope
The problem with CSS
My favorite CSS Zen Garden design
Related by category
Don't put title in a <link> tag
7th of January 2006
I learnt an important lesson today about the <link> tag. I had a XHTML Strict that looked like this:
<link rel="stylesheet" type="text/css" media="print"
title="Design for print" href="/print.css" />
title="Design for print" href="/print.css" />
And every time I tried to print the page it did not correctly incorporate the print.css file. The file gets downloaded by the client but not incorporated. After a lot of trial and errors and testing I finally discovered why. The title attribute stops the link tag from working.
The correct way to declare a link tag for a media="print" is to do the following:
<link rel="stylesheet" type="text/css" media="print"
href="/print.css" />
href="/print.css" />
Hopefully this will help someone else getting into the same pickle as I was in.
Comment
Anonymous -
22nd December 2008
[«« Reply to this]
Hi for me when i use this link tag, the url is printing when i gave print as follows.
<html>
<head>
<link rel=alternate media=print href="http://someserver/abc.doc">
</head>
<body onload=window.print()>
</body>
</html>
Hi for me when i use this link tag, the url is printing when i gave print as follows.
<html>
<head>
<link rel=alternate media=print href="http://someserver/abc.doc">
</head>
<body onload=window.print()>
</body>
</html>
Lakshmi Ramya -
22nd December 2008
[«« Reply to this]
Hi for me when i use this link tag, the url is printing when i gave print as follows.
<html>
<head>
<link rel=alternate media=print href="http://someserver/abc.doc">
</head>
<body onload=window.print()>
</body>
</html>
Hi for me when i use this link tag, the url is printing when i gave print as follows.
<html>
<head>
<link rel=alternate media=print href="http://someserver/abc.doc">
</head>
<body onload=window.print()>
</body>
</html>


helvete vad tråkig sida. jag kräks. hoppas du hade en trvlig kinatrip. tjock.