Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
| Search | Today's Posts | Mark Forums Read
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 13th, 2004, 09:28 AM
richard.york's Avatar
Wrox Author
Points: 5,506, Level: 31
Points: 5,506, Level: 31 Points: 5,506, Level: 31 Points: 5,506, Level: 31
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Camby, IN, USA.
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default


Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
   <head>
        <title></title>
        <style type='text/css'>
            @media print {
                div {
                    display: none;
                }
            }
        </style>
   </head>
   <body>
       <div>Test @media print.</div>
   </body>
</html>
Don't forget to click 'print preview' (I did forget :-)!).

Regards,
Rich

--
[http://www.smilingsouls.net]
[http://pear.php.net/Mail_IMAP] A PHP/C-Client/PEAR solution for webmail
 
Old October 14th, 2004, 02:59 AM
Authorized User
 
Join Date: Feb 2004
Location: , , .
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It worked!! Thanks a lot
Elisabeth





Similar Threads
Thread Thread Starter Forum Replies Last Post
how to print image at center of paper EXACTLY guntank C# 2005 1 September 24th, 2006 04:43 AM
Print Button itHighway Classic ASP Basics 2 February 27th, 2005 06:48 PM
'print' button crmpicco Classic ASP Basics 0 February 8th, 2005 10:25 AM
print button alitoday Classic ASP Basics 1 June 5th, 2004 05:01 AM
print out on a paper hosefo81 PHP How-To 4 February 11th, 2004 04:58 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.