+ 2

How I do to print direct html?

I need print direct in html. because when I will go to print. popup the confirm print window

11th Apr 2017, 9:15 PM
Adolfo Padilla
Adolfo Padilla - avatar
8 Réponses
+ 13
Espero que te sirva mi respuesta, es lo que te entendí, si no hacé tu pregunta en español y capaz te entiendo mejor 😊
12th Apr 2017, 4:44 AM
Pao
Pao - avatar
+ 13
Yeah, me alegro 😄👌
12th Apr 2017, 4:50 AM
Pao
Pao - avatar
+ 12
Use the media query in CSS to modify the print size or any property when the document is printed or viewed in print preview mode, like this: @media print { body { background: #fff color: #000 margin: 15px padding: 5px; border: 1pt solid #990505; } } You can also specify in your HTML using classes what elements you wish to hide or show when printing. Like this: @media print { .show-for-print { display: block !important; } .hide-for-print { display: none !important; } } And if you're using Foundation for different screen sizes (responsiveness), you can use Breakpoints.
12th Apr 2017, 4:37 AM
Pao
Pao - avatar
+ 2
muchas gracias.😀 me sirvió, te lo agradezco mucho
12th Apr 2017, 4:46 AM
Adolfo Padilla
Adolfo Padilla - avatar
+ 1
what exactly you want to do?
12th Apr 2017, 1:39 AM
Giannis Tsirovasilis
Giannis Tsirovasilis - avatar
+ 1
I print web page to pot printer. I use window.print() but i need put the size. print size
12th Apr 2017, 1:42 AM
Adolfo Padilla
Adolfo Padilla - avatar
+ 1
sorry i cant understand your english
12th Apr 2017, 1:45 AM
Giannis Tsirovasilis
Giannis Tsirovasilis - avatar
+ 1
I need to specify the print size. window.print()
12th Apr 2017, 1:48 AM
Adolfo Padilla
Adolfo Padilla - avatar