Should I store #wrapper {width: 100%} in print css?

Should I store #wrapper{ width:100%}in print css? because on the screen my design has a fixed width 960 px. but there are so many types and sizes of paper in the world, and everyone can print on paper of any size, more and less.

So, if in the print css I do not specify a relative width, I think the print page is cut from the correct size, if the user will print on paper sizes that can be smaller or larger width than the width of my #wrapper site ( 960px). then this can create a problem.

http://www.dpandi.com/paper/index.html

a printer

also leaves some margin on printing. A.

So, is all relative size needed in print css?

update:

And also I have to change the float left or right to float: none in print css?

+3
source share
2 answers

Yes you need. If you stick to a certain pixel size, you may even run into a situation where different visitors may see different volumes of a page cut off due to their DPI of the printer and / or browser. You might also want your font sizes to be relative (using em or%).

Caution: make sure that all of your elements move correctly when you switch to relative width, or you can disable or cut other parts of your content to strange places.

+1
source

, , , , . .

0

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


All Articles