question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Table with background color does not work

See original GitHub issue

<script> function awnow(){ printJS({ printable: 'print', type: 'html', targetStyles: ['*'] }); } </script>

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
TingNLPcommented, Sep 20, 2022

@crabbly Hi, background-color:red is not work on headerStyle、gridHeaderStyle、gridStyle how to solve it ?

I find solution. Just need to add -webkit-print-color-adjust: exact;

see the docs according to your browser. https://developer.mozilla.org/en-US/docs/Web/CSS/print-color-adjust

0reactions
TingNLPcommented, Sep 20, 2022

@crabbly Hi, background-color:red not work on headerStyle、gridHeaderStyle、gridStyle how to solve it ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

background-color css property not working in table
background-color css property not working in table · 2. div is not allowed as a child of tr element. You only can put...
Read more >
Why Table Bgcolor Is No Longer Valid Code (And What To ...
To set the background of a table with CSS, use the background-color property instead of the bgcolor HTML attribute.
Read more >
Unable to change background color of table row - OutSystems
Hello All,. Currently I am trying to display pink as the background color for records in a table that fulfill a condition like...
Read more >
Solved: Rules for Background color change in table is not
Solved: I have a calculated measure called complete%. That is one of my field in table view. Given the below rules for background...
Read more >
Why Table row Background Color not showing when pr...
Hi, Community :) Please help me Why Table row Background Color not showing when printing in UI Page ? This is what the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found