I have a div that contains: text , backround color, image
and i want to print only this div.
I’m kind of clueless so any help could help
thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need to define a print stylesheet. You do this in the following manner:
In that sheet you specify how to display your website for the printed page. So what you can do is set every element to
display:noneexcept for the div you wish to print.You can do this easily with the following selectors:
and simply apply the id
printDivto the div you wish to print.