Click here to Skip to main content
15,892,737 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how can I Call Print.css when i press on submit.
print.css change the color to black to print the page and other things ..........
Posted
Comments
Ankur\m/ 5-Feb-14 8:08am    
Does it contain lots of CSS? If not just call that CSS using javascript when you click print button.
Google for 'print selected area php' and that should help you with other ways how people customize the print sections before printing.
Sergey Alexandrovich Kryukov 5-Feb-14 11:43am    
There is no such concept as "call CSS". This is not who call work and not how CSS works...
—SA

1 solution

Please see my comment to the question. Probably what you need is the CSS @media feature. Please read about it:
http://www.w3.org/TR/CSS2/media.html[^],
http://www.w3schools.com/css/css_mediatypes.asp[^].

By using the @media rules, you can select different styles (or some of the styles) for a different kinds of media, such as screen and printer.

—SA
 
Share this answer
 
Comments
Abhinav S 5-Feb-14 12:08pm    
5!
Sergey Alexandrovich Kryukov 5-Feb-14 12:18pm    
Thank you, Abhinav.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900