www.webdeveloper.com
Results 1 to 2 of 2

Thread: Suppress printing a html frame

  1. #1
    Join Date
    May 2011
    Posts
    1

    Suppress printing a html frame

    I am new to HTML.

    I have two vertical frames in my HTML Page. When I choose to print the HTML Page both the frames get printed. Is is possible to print only one of the two frames and suppress printing the other frame.

    Any inputs greatly appreciated.

    Let me know if I need to give any more inputs?

    Thanks
    Jo

  2. #2
    Join Date
    Nov 2003
    Location
    Worthington, OH, USA
    Posts
    3,634
    A little css should do the trick:

    HTML Code:
    <style type="text/css">
    @media print
    {
     .noprint 
    {
    display:none;
    }
    }
    </style>
    Then add class="noprint" into the frame tag that you don't want to print.
    54 68 65 42 65 61 72 4D 61 79

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles