Re: Print preview in php [message #174254 is a reply to message #174245] |
Sat, 28 May 2011 15:27 |
Thomas 'PointedEars'
Messages: 701 Registered: October 2010
Karma:
|
Senior Member |
|
|
TK wrote:
> On 5/28/2011 7:04 AM, Co wrote:
>> Thomas 'PointedEars' Lahn wrote:
>>> Or you could much more simply define a stylesheet for print media that
>>> does the necessary adjustments:
>>>
>>> <link rel="stylesheet" media="print" href="print.css">
>>
>> I found an example doing that but I still printed the whole page.
>
> Make the items you do not want to display have a class="nodisplay"
>
> In the print css sheet define .nodisplay {display:none;}
It would be more sensible to let the class name indicate that this is about
printing only, like class="dontprint" and .dontprint { display:none; }.
Please trim your quotes to the relevant minimum; that usually includes to
not quote signatures. (I find it rather strange that you did, because the
signature was properly delimited and I know that your Thunderbird removes it
automatically when replying. You are not trolling, are you?)
You would also be well-advised to use a proper message-ID. As it is, anyone
could use dont-email.me because it is not a registered second-level domain
(`me.' is not a registered top-level domain to begin with). So your
message-IDs are not necessarily unique over a course of two years, with all
side-effects. (Again, you have to use
user_pref("mail.identity.default.FQDN", "dont-email.me"); in your user.js
and the like to post this header with Thunderbird …)
PointedEars
--
Use any version of Microsoft Frontpage to create your site.
(This won't prevent people from viewing your source, but no one
will want to steal it.)
-- from <http://www.vortex-webdesign.com/help/hidesource.htm> (404-comp.)
|
|
|