Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

142
Views
Display/hide CSS when using HTML2Canvas

Is it possible to show hidden text on a html2canvas "screenshot"?

Let's say I have <p style="display:none;">Some random text</p>. Can this be hidden on the page as a default, but display when you press the button to download the div?

Also - is it possible to go the other way around aswell? Is it possible to hide CSS styles of an item instead of removing the entire item itself using the data-html2canvas-ignore? Let's say I have a code such as this one: <input style="border:solid; background:blue;">Display this input</input>. Is it possible to display the text of the input, but hide the style when using html2canvas?

     $( "#download" ).on( "click", function() {
      html2canvas(document.querySelector("#to_save")).then(canvas => {
        canvas.toBlob(function(blob) {
          window.saveAs(blob, 'Oversikt.png');
        });
        });
    });

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!