print-Portrait.css
735 Bytes
@page {
size: portrait;
margin: 0;
}
#printDivContent {
border: 2px solid black;
border-radius: 10px;
width: 85%;
height: 85%;
padding: 15px;
margin: 15px;
/*position: absolute;
margin: 0 auto;
text-align: center;
top: 5%;
left: 5%;*/
position: fixed;
top: 50%;
left: 50%;
/* bring your own prefixes */
transform: translate(-50%, -50%);
}
#dvPortrait {
width: 100%;
/*display: table;*/
margin: 0 auto;
}
/*@page {
/*size: A4;*/
/*margin: 0;*/ /*IMPORTANT*/ /* REMOVE PAGE HEADER - TITLE/ FOOTER - PAGE NUMBER [Change- 1]*/
/*size: auto; /* REMOVE PAGE HEADER - TITLE/ FOOTER - PAGE NUMBER [Change- 2]*/
/* }*/