PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Thursday, September 15, 2022

[FIXED] How can I print colors when printing a page in bootstrap?

 September 15, 2022     asp.net, colors, printing, twitter-bootstrap, vb.net     No comments   

Issue

I'm trying to print a page with colors on my asp.net site. But all the colors just come out white. However my Highcharts colors and images come out in color. I'm using Bootstrap 3, not sure if that is affecting anything, and I've also check the box to print background colors. Does anyone know why my colors aren't printing?


Solution

Found the solution shortly after posting the question. The following line in bootstrap.css needs to be changed.

@media print{*{text-shadow:none !important;color:#000 !important;background:transparent !important;box-shadow:none !important;}

For my purposes I removed the color: and background: properties.



Answered By - daveomcd
Answer Checked By - Timothy Miller (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing