Results 1 to 2 of 2

Thread: tabcontent page printing - CSS anyone?

  1. #1
    Join Date
    Oct 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default tabcontent page printing - CSS anyone?

    1) Script Title: tabcontent

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

    3) Describe problem: I have implemented this useful script and am now faced with the issue of printing what the user sees. Has anyone already implemented a CSS print for this?

    Thanks.

    Nicholas

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

    Default

    Inside the CSS portion of the script, add the below portion in red to it:

    Code:
    .tabcontent{
    display:none;
    }
    
    @media print {
    .tabcontent {
    display:block !important;
    }
    }
    This in fact will cause all the expand/collapsing DIVs' contents to be printed out, versus just the selected one's. The upside is that it's the easiest and quickest way to addressing the print issue with this script.

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
  •