Certain HTML form elements have extra UI attached to them, like the up/down arrows on number
. When printing the page however, those buttons are no longer needed, as
A better solution, as it doesn't use vendor prefix, will be to use the output element.
output
element on @media screen
;output
element on field input ;input
and the output
element on @media print
.→ codepen available here.
The output
element replace the input
on print media
.print {
display: none;
}
@media print {
.screen {
display: none;
}
.print {
display: inline-block;
}
}