469,350 Members | 1,829 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,350 developers. It's quick & easy.

printable version

Is there HTML code available to provide a printable version of a web
page?
Without the browser graphics, that is.
--
Regards, Harold A Ralston
Racine, Wisconsin, USA
Jul 23 '05 #1
2 6035
Harold R <lu********@yahoo.com> wrote:
Is there HTML code available to provide a printable version of a web
page?
You can use CSS to provide an print stylesheet but the only HTML
component to that is the link:
<link rel="stylesheet" href="print.css" media="print">

That provides an alternative presentation for the printed page. No
need to create duplicate HTML pages.
Without the browser graphics, that is.


Sorry, no idea what you mean. You can hide graphics that are in the
page by using display: none; in your print stylesheet, but I've no
idea what you mean by _browser_ graphics.

Steve

Jul 23 '05 #2

"Steve Pugh" <st***@pugh.net> wrote in message
news:mf********************************@4ax.com...
Harold R <lu********@yahoo.com> wrote:
Is there HTML code available to provide a printable version of a web
page?


You can use CSS to provide an print stylesheet but the only HTML
component to that is the link:
<link rel="stylesheet" href="print.css" media="print">

That provides an alternative presentation for the printed page. No
need to create duplicate HTML pages.
Without the browser graphics, that is.


Sorry, no idea what you mean. You can hide graphics that are in the
page by using display: none; in your print stylesheet, but I've no
idea what you mean by _browser_ graphics.

Steve

Thank you VERY MUCH for this reply, Steve! I was actually on the newsgroup
checking replies to another question and this thread caught my eye. I found
your remarks about separate CSS files for printed versions of pages to be a
revelation: I hadn't known that anything along this line was possible!

I checked in my favourite HTML/CSS reference (<>) , then threw together a
very simple demonstration of the technique you describe and was blown away.
I think I'm going to find that *very* useful in the future!

Thanks again!

Rhino
Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Pascal | last post: by
2 posts views Thread by Daniel Alexandre | last post: by
2 posts views Thread by sandygarg | last post: by
17 posts views Thread by CJM | last post: by
10 posts views Thread by CJM | last post: by
2 posts views Thread by gnawz | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.