css - Issues with allignment on print preview for html page -


i have developed html page whenever print preview contents getting disloacated.

i dam sure made wrong @ css giving size ,height,width..

but not sure going wrong. there alternative ,so not affect existing css. have heard media tag...do people have example same.

you can use custom css printing: option 1: append media print property css stylesheet link

    <link href="/css/style.css" media="screen,print" rel="stylesheet" type="text/css">                                                                               ^^^ 

and can write custom css printing in stylesheet

@media print {     div {         width: 100%;     } } 

option 2: can add whole css file printing.

        <link href="/css/style.css" media="print" rel="stylesheet" type="text/css">                               

in case not necessary use @media print { in stylesheet


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -