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

128
Views
Print function printing columns that should be side by side down the page instead

What should be printing enter image description here

Whats actually printing

enter image description here

Here is the code for the print function

function removeLinks(printDiv) {
            var all_links = document.getElementById(printDiv).getElementsByTagName("a");

            for (var i = 0; i < all_links.length; i++) {
                all_links[i].removeAttribute("href");
            }
        }

        function printdiv(printDiv) {
            var divCaseNote = document.getElementById(printDiv);
            var oldstr = document.body.innerHTML;
            var oldTitle = document.title;

            if (divCaseNote != null) {
                divCaseNote.style = "padding: 20px;";
                innerHTML = divCaseNote.innerHTML;
            }

            removeLinks(printDiv);

            var headstr = "<html><head rel=\"stylesheet\" media=\"print\" link href=\"/CSS/print.css\"/><title> </title></head><body>";
            var footstr = "</body>";
            var newstr = document.getElementById(printDiv).innerHTML;
            document.body.innerHTML = headstr + newstr + footstr;
            document.title = oldTitle.replace(" - View Case Note", "");

            window.print()

            document.body.innerHTML = oldstr;
            document.title = oldTitle;
        }

When I check out the HTML output it has all the div tags defined with the correct column sizes but these aren't transferred over when it prints. Does anyone know why these columns are printing one after the other as opposed to side by side.

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!