By default some web browsers (e.g. Firefox and IE) have the background colour disabled in the print dialogue box. Is there html/css that I could use to create background colour for an element that would be printed even in this case?
Alternatively is there a neat way to warn the user before they print the webpage?
Edit: I didn’t make it clear before, but the webpage is designed to be printed. The main background is white, but occasional words and phrases are highlighted with a background colour. To make matters slightly more complicated, the page content and highlighting is largely determined by the user.
For warning the user, you might use the
onbeforeprintevent attribute.