html - How to change layout as per the selected paper size while printing? -
i want automatically change layout landscape selected paper size tabloid , portrait when selected paper size letter.
the problem following css hides both layout , paper size options on chrome. selects "letter" paper size default , keeps layout portrait.
@media print { @page {size: portrait} }
there no way can keep paper size option open, control layout option code. else, hope following code might have helped me.
@media print , (max-width: 17in) { @page {size: landscape} } @media print , (max-width: 8.5in) { @page {size: portrait} }
is there way keep showing paper size option control layout code?
Comments
Post a Comment