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

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -