Jun 1, 2008 #1 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
hallo, can I make a button "print this" that would print only the content of the surrounding container and not the whole page? thanks
Jun 1, 2008 #2 BillyRayPreachersSon Programmer Dec 8, 2003 17,047 GB 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 http://www.codecouch.com/dan/[/tt] Upvote 0 Downvote
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 http://www.codecouch.com/dan/[/tt]
Jun 2, 2008 #3 EdwardMartinIII Technical User Sep 17, 2002 1,655 US Yep, I'd go the way of a print styleshet. I'm totally loving using print stylesheets! Edward "Cut a hole in the door. Hang a flap. Criminy, why didn't I think of this earlier?!" -- inventor of the cat door Upvote 0 Downvote
Yep, I'd go the way of a print styleshet. I'm totally loving using print stylesheets! Edward "Cut a hole in the door. Hang a flap. Criminy, why didn't I think of this earlier?!" -- inventor of the cat door