Advanced Search

Results 1 to 2 of 2

Thread: Printing hidden tabs on ddtabsmenu

  1. #1
    Join Date
    Feb 2006
    Posts
    36
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Printing hidden tabs on ddtabsmenu

    1) Script Title: DD Tab Menu (5 styles)

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/ddtabmenu.htm

    3) Describe problem: When you print the page, the hidden tabs do not print. I tried resolving with this CSS:

    Code:
    @media print
    {
    	.tabcontent
    	{
    		display: block;
    	}
    }
    But it didn't work. Any ideas?

    Thanks!
    Last edited by jscheuer1; 04-25-2013 at 04:40 PM. Reason: Format

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,705
    Thanks
    43
    Thanked 3,133 Times in 3,097 Posts
    Blog Entries
    12

    Default

    There could also be other problems, but the generated markup for an unseen tab is:

    Code:
    <div id="sb1" class="tabcontent" style="display: none;">
      
    Return to the 
      <a href="http://www.dynamicdrive.com">frontpage</a>
       of Dynamic Drive.
    
    </div>
    That's known as inline style and cannot be overridden by the css directive in your post. However, it can if you add the !important keyword:

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

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Similar Threads

  1. ddtabsmenu stec=xt in tabcontiner doesn't appear
    By si.monday in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 02-08-2010, 11:44 PM
  2. CSS and Printing!
    By bassa in forum CSS
    Replies: 15
    Last Post: 04-10-2009, 07:17 AM
  3. about printing
    By ApranaX in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 02-26-2008, 06:18 PM
  4. printing in IE6 and firefox
    By illibaro in forum Other
    Replies: 1
    Last Post: 10-27-2007, 04:20 AM
  5. Open hidden sections before printing
    By CharlieLaw in forum JavaScript
    Replies: 4
    Last Post: 03-13-2006, 06:38 PM

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
  •