Okay, I'd like to create a print-friendly website, so I've been
reading up on how to create print-friendly pages (without duplicating
my site, of course, by having separate versions of each page)....
Apparently one can use JavaScript or CSS for this....
Using CSS, it seems that the "trick" is to use * media="print" * in
the <linktag....
So if I have a hyperlink to a print-friendly page...um, well, what's
that, just the current webpage, only with "print.css" instead of
"default.cs s" in the <linktag??? If so, that would be just having a
duplicate copy of the whole site!
So that can't be how it works, right?
But then, how does it work??
What's that print-friendly hyperlink actually pointing to??
This must be so basic that no one bothers explaining it...but I'm
starting ~95% from scratch, here....
BTW, here's something from my print.css file that's not working for
some reason:
body {
background-color: #fff;
color: #000;
margin: 0;
padding: 40px;
font: normal 12pt/160% Georgia;
}
#header, #menu, #search, #footer {
display: none;
}
a:link, a:visited, a:active {
color: #000;
text-decoration: none;
}
#primarycontain er a:after {
content: " ( attr(href) ")";
font-size: 11pt;
}
img { display: none; }
That last img thinggy, I'm not so sure about, as well the show URL
thinggy right before it, but the others don't work and yet they look
100% proper to me! What's going on?? My footer still shows up, my
menu shows up, the searchbox shows up, hyperlinks are still underlined
and colored, etc.
ALL ADVICE MUCH APPRECIATED!!
Comment