Forcing Grayscale Printing
At the time of this writing, this will only work in Chrome 18+, but it's standardized so support will eventually come to everywhere.
@media print {
body {
/* IE4-8 and 9 (deprecated). */
filter: Gray();
/* SVG version for IE10, Chrome 17, FF3.5,
Safari 5.2 and Opera 11.6 */
filter: url('#grayscale');
/* CSS3 filter, at the moment Webkit only. Prefix it for
future implementations */
-webkit-filter: grayscale(100%);
filter: grayscale(100%); /* future-proof */
}
}
Other Topics
CSS : Comments,CSS : Why, whatand need of
CSS,CSS : Background image Trick,CSS : Forcing Grayscale Printing,CSS : Two classes together,CSS : Border default value,CSS : Document for printing,CSS : Image replacement technique,CSS : Box model hack alternative,CSS : Centre aligning a block element,CSS : Class selector,CSS : Sticky Footer Layout,CSS::STYLING FORMS, mechanical Engineering, English books,Photoshop tutorials,Harry potter,Best 100 english books,Mechanical-old-question-paper,CSS : Id Selector
No comments:
Post a Comment