0

I am trying to make a format of a marksheet where I have used few css and I need them in print format as well. I have succeded pretty much. I am able to print all the styling except the background color in the table head. The styling is there while the web page is loaded but dissappears when I try to print it. I would be grateful if anyone could solve this for me.

1 Answers1

0

If I understand you correctly, you can print everything except the background.

If you are using IE, please try the following:

print preview ( right click on document -> print preview ), go to settings and there is option "print background color and images", select that option and try.

If you are using Chrome, please try the following:

Ctrl-P (print) > under more settings > options (tick background graphics)

Ken Lee
  • 6,985
  • 3
  • 10
  • 29
  • I tried doing this as well but didnt work for me. p.s I used chrome. and i have created a print button in the webpage itself which triggers the printing function. – Amrit Bhujel Nov 02 '20 at 07:05
  • If you do not use your print button, but use the chrome's print function (and use my suggested method), what will be the result ? – Ken Lee Nov 02 '20 at 13:18
  • the result is same additionally the other css also wont function as desired if I use the chromes print function – Amrit Bhujel Nov 03 '20 at 08:52
  • Did you include the media="print" parameter in your css inclusion clause ? – Ken Lee Nov 03 '20 at 09:41