printing - CSS hide placeholder on print -
this question has answer here:
is there way hide input's placeholder text in print style sheet. have form can optionally printed , faxed/mailed. don't know why out want that, that's client wants. placeholder text in way on printed document.
taken accepted answer here: removing input placeholder on printable version of html page
you can use print media query change text color transparent. doesn't "remove" text, makes invisible, same result...
@media print { ::-webkit-input-placeholder { /* webkit browsers */ color: transparent; } :-moz-placeholder { /* mozilla firefox 4 18 */ color: transparent; } ::-moz-placeholder { /* mozilla firefox 19+ */ color: transparent; } :-ms-input-placeholder { /* internet explorer 10+ */ color: transparent; } }
Comments
Post a Comment