Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8367763
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T13:14:25+00:00 2026-06-09T13:14:25+00:00

Edit: Any recommended hacks? I’m currently considering generating an image on the backend, then

  • 0

Edit:

Any recommended hacks?

I’m currently considering generating an image on the backend, then open that in a new window, then printing off the image.


I’m printing parts of a page by hiding other elements via

$(...).hide();

and then calling print via

window.print();

But in all browsers I encounter some style inconsistency. Specifically, background-color disappears.

Regular webpage view:

enter image description here

Print preview:

enter image description here

The relevant html (jade) are as follows:

amount-due.span2
  dl
    dt Amount Due
    dd.align-right <%= RP.util.currency_to_symbol[invoice.currency.toLowerCase()] %>
      <% if (invoice.state !== "paid") { %>
      span <%= invoice.total_amount %>
      <% } else { %>
      span 0
      <% } %>

and

d.darken <%= RP.util.currency_to_symbol[invoice.currency.toLowerCase()] %><%= invoice.total_amount %>

The relevant CSS are as follows:

enter image description here

and

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T13:14:26+00:00Added an answer on June 9, 2026 at 1:14 pm

    I’m not aware of any browser that doesn’t, for the sake of saving ink/toner, turn background colours and images off for printing.

    Some provide a user preference to reenable it.

    Design your stylesheet on the assumption that all your backgrounds will be white, and use some other means (such as bold text) to highlight particular bits of content.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Are there any editors that can edit multi-gigabyte text files, perhaps by only loading
EDIT : I have altered the NSPredicate as recommended so that my fetch code
I won't want to have edit any working sets. I just want a way
I have editable grid view, If I click on edit in any row say
[EDIT] I am NOT accepting any answer which involves BigInteger, or other similarly inefficient
Is there any possible way to edit this code <asp:LoginName ID=LoginName1 runat=server style=top: 165px;
Is there any external library using which one can edit and save XML files
Does anyone have any suggestions on how to edit an <a href=''> link in
Can any one share some study material for multithreading on .net? EDIT: I don't
do you guys have any idea how to edit the the labels in the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.