Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

printing the content of a div

Status
Not open for further replies.

davikokar

Technical User
May 13, 2004
523
IT
hallo,
can I make a button "print this" that would print only the content of the surrounding container and not the whole page?

thanks
 
Either use an iframe, and print only the contents of the iframe, or use print style sheets to hide all elements you do not want to be printed.

You can ask in forum215 for more help on the latter.

Hope this helps,
Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Yep, I'd go the way of a print styleshet. I'm totally loving using print stylesheets!

[monkey] Edward [monkey]

"Cut a hole in the door. Hang a flap. Criminy, why didn't I think of this earlier?!" -- inventor of the cat door
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top