[Project_owners] Manipulate printing output?

Karsten Düsterloh mnenhy at tprac.de
Wed Dec 8 23:43:10 EST 2004


Malte Rücker aber hob zu reden an und schrieb:
>> which will change the text of all quoted elements to green.  If you want 
>> this style to only apply when printed, use this syntax:
>> 
>> @media print
>>     {
>>        .moz-text-flowed blockquote,
>>        .moz-text-plain blockquote { color: green }
>>     }
>> 
>> Hope that helps and good luck,
> 
> Thanks for this suggestion which is fine for changing things by hand.
> 
> Actually, I was looking for a solution that can be integrated in my 
> extension, and changing user*.css files is not possible in this case. 

You can overlay stylesheets in the same manner as overlaying content.
For example, see
http://lxr.mozilla.org/mozilla/source/extensions/irc/xul/skin/contents.rdf#22


Karsten
-- 
Feel free to correct my English. :)


More information about the Project_owners mailing list