Ok, thank you. Is the "@media print" tag a reserved keyword? Or could that be named in the next webpage e.g. "@page printlayout" ?
Assume a default built-in CSS of a web page does not contain originally such a "@media print" statement. Does a CSS applied by GM script overwrite other print directives in ALL CASES? Ben On Saturday, 23 May 2015 18:08:23 UTC+2, janekptacijarabaci wrote: > > See: https://developer.mozilla.org/en-US/docs/Web/CSS/@media > > > GM_addStyle("@media print {\n" > + " body {\n" > + " margin-left: 5em !important;\n" > + " margin-right: 5em !important;\n" > + " }\n" > + " * {\n" > + " font-size: 20px !important;\n" > + " line-height: 150% !important;\n" > + " }\n" > + "}"); > > > Dne sobota 23. května 2015 15:38:16 UTC+2 Ben napsal(a): >> >> Lets go at first to a sample page with the grey printer icon in the >> middle column: >> >> >> http://www.finanzen100.de/finanznachrichten/wirtschaft/als-praesident-roosevelt-den-gold-besitz-verbot_H1951016042_65256/ >> >> >> Assume I want to change the font size and line-height and margins for the >> print layout page (NOT the display page in the >> browser!). >> >> Where can I find the corresponding CSS statements and how to I refer them >> in GM script? >> >> Thank you >> Ben >> >> >> >> >> >> >> -- You received this message because you are subscribed to the Google Groups "greasemonkey-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/greasemonkey-users. For more options, visit https://groups.google.com/d/optout.
