Results 1 to 4 of 4

Thread: Supress printing of Tab Content

  1. #1
    Join Date
    May 2009
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Supress printing of Tab Content

    1) Script Title: Tab Content Script (v2.2)

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...tabcontent.htm

    3) Describe problem: This is an amazing and beautiful set of scripts and I am extremely happy with it as it appears on the web page. Here it comes...But when I print the page all of the Tab content from all of the tabs appears. Is there a way to suppress this so that only the current Tab content prints?

    I really do hope so because, as I said, I LOVE this script!

  2. #2
    Join Date
    May 2009
    Location
    Quebec, Saguenay
    Posts
    2
    Thanks
    1
    Thanked 1 Time in 1 Post

    Default

    Actually, stuff with the CSS property "display:none;" should not be printed!
    When I use "Print Preview", it only display the current viewable tab, at least, on the script page.

    Does your page has a print style sheet? If so, your problem may lie there.

  3. The Following User Says Thank You to Stalfos For This Useful Post:

    ahamilto (05-22-2009)

  4. #3
    Join Date
    May 2009
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    I agree that the pages really don't need to be printed, unfortunately the folks I am designing this for tend to print the pages out to review them and have expressed their concern.

    I really do appreciate your quick response!

  5. #4
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Try removing the following code within the .css file:

    Code:
    @media print {
    .tabcontent {
    display:block !important;
    }
    }

    The above is what causes all contents to be printed out, for accessibility reasons.
    DD Admin

  6. The Following User Says Thank You to ddadmin For This Useful Post:

    Stalfos (05-22-2009)

Bookmarks

Posting Permissions

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