want to print part of my page.. (window.print()??)

P

Pudlik, Szymon

Hi,
I have page with left banner (links), footer and header and of cours
with some images and text. I want to print this page but without banner,
header and footer. Only images and text. Is it possible to do that?
window.print() is printing all informations on page but I want only some
part of it. Any ideas?
Greetings, Szymon Pudlik.
 
R

Robert

Hi,
I have page with left banner (links), footer and header and of cours
with some images and text. I want to print this page but without banner,
header and footer. Only images and text. Is it possible to do that?
window.print() is printing all informations on page but I want only some
part of it. Any ideas?
Greetings, Szymon Pudlik.

You can use media-dependant style sheets for this and for example hide
certain blocks when printing.

http://www.w3.org/TR/CSS21/media.html

This solution is not dependant on javascript.
 
P

Pudlik, Szymon

Robert said:
You can use media-dependant style sheets for this and for example hide
certain blocks when printing.

I put media=print style and it works :) Thanks for your help!
Greetings, Szymon.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,038
Latest member
OrderProperKetocapsules

Latest Threads

Top