472,119 Members | 2,043 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

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 6191
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

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.