Why is it so difficult to print a webpage correctly?

I printed a page from the bank's website. In addition to the page with my data, I got five more pages with the logo, only the title, only the footer, etc. It is a joke in my family that you cannot print a web page without losing the uselessness of a wasted page too.

So why is it so complicated? Do we blame web designers, web browsers or whom? I would think that it will be a mature technology by now and suffers from these idiotic little flaws.

I especially don’t understand why printing from the β€œpreview” gives you something different from what you are viewing.

+3
source share
3 answers

- , . - - CSS, :

<link rel="stylesheet" type="text/css" media="print" href="print-only.css" />

- , , , .

+2

:

(, : ) .

, . "" CSS.

. :

CSS-

0

- . . , , , , .

Leniel, CSS , .

0

Source: https://habr.com/ru/post/1762562/


All Articles