printing - Print only jQuery UI Dialog Content -


i have modal form, opens on click of button. contains text want print.

i have hidden every other elements in print.css except div contains print data. when press ctrl + p shows data wanna print, wanted be, not fit printing a4 page. text positioned in left top corner of paper , part of (right side) hidden.

i tried every possible style in print.css make content fit printable area, nothing changes :( please help?

use like:

@media screen {     .printable { display: none; }     .non-printable { display: block; } } @media print {     .printable { display: block; }     .non-printable { display: none; } } 

and set margin page in print state.

also check answer , jsfiddle here


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -