i’m using the jQuery Print Element plugin for printing but i think it’s a general css issue:
how can i print out a hidden element? (with css set to display:none;)
when trying, i’m gettin only a plain sheet. is there any solution?
thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As DN suggest, using a print stylesheet will work nicely. On the print stylesheet, set your css rule to
#element {display:block}.I’m looking at the jQuery.printElement Options, and there is an option
overrideElementCSS. It seems to be just what you need. Here is the example code:Replace
thisWillBeTheCSSUsedAsWell.csswith the path to your print stylesheet which has the#element {display:block}rule.