html - Media Print CSS Issue not showing in the Print Preview -
i have print specific layout helps show receipt. layout follows.
<!-- receipts print screen specific layout --> <div id="receiptsprintscreenwrapper" class="row"> <div class="row"> <div class="col col-md-3"></div> <div class="col col-md-6"> <img class="receiptslogo" src="./assets/imgs/sfc.gif" /> </div> <div class="col col-md-3"></div> </div> <div id="staticreceiptsinfo" class="row text-center"> <div class="col col-md-3"></div> <div class="col col-md-6"> <p>xxxxxxxxxxxxxxxxxxxxxx</p> <p>xxxxxxxxxxxxxxxxxxxxxx</p> <p>xxxxxxxxxxxxxxxxxxxxxx</p> </div> <div class="col col-md-3 text-right"> <p>xxxxxxxxxxxxxxxxxxxxxx</p> <p>xxxxxxxxxxxxxxxxxxxxxx</p> </div> </div> <div id="receiptscontentarea" class="row text-left"> <div class="col-md-9"> <p>xxxxxxxxxxxxxxx <span style="margin-left: 20px;">:</span></p> <p>xxxxxxxxxxxxxxx <span style="margin-left: 56px;">:</span></p> <p>xxxxxxxxxxxxxxx <span style="margin-left: 54px;">:</span></p> </div> <div id="receiptsrightinfo" class="col-md-3 text-left"> <p><strong>xxxxxxxxxxxxxxx</strong>: {{xxxxxxxxxxxxxxx}}</p> <p><strong>xxxxxxxxxxxxxxx</strong> : {{xxxxxxxxxxxxxxx}}</p> </div> </div> <div id="firstbottomreceiptssection" class="row"> <table class="table table-bordered table-striped"> <thead> <tr> <th>xxxxxxxxxxxxxxx</th> <th>xxxxxxxxxxxxxxx</th> </tr> </thead> <tbody> <tr> <td>xxxxxxxxxxxxxxx</td> <td></td> </tr> <tr> <td>xxxxxxxxxxxxxxx</td> <td></td> </tr> <tr> <td>xxxxxxxxxxxxxxx</td> <td></td> </tr> </tbody> </table> </div> <div id="footer" class="row"> <p class="pull-right">xxxxxxxxxxxxxxx. <span class="extralargetext"><strong>xxxxxxxxxxxxxxx.</strong></span></p> <p class="extrasmalltext">xxxxxxxxxxxxxxx.</p> </div> </div>
======================================================================= css specific this.
/* css receipts print screen */ @media print { body { background: #000; color: #000; font-size: 8pt; line-height: 150%; margin: 0px; } hr { color: #ccc; background-color: #ccc; } h1, h2, h3, h4, h5, h6, code, pre { color: #000; text-transform: none; } h1 { font-size: 11pt; margin-top: 1em; } h2 { font-size: 10pt; } h3 { font-size: 9pt; } h4, h5, h6 { font-size: 8pt; } code, pre { font-size: 8pt; background-color: transparent; } blockquote { background-image: none; } a:link, a:visited { text-decoration: underline; color: #000; } abbr:after, acronym:after { content: " (" attr(title) ") "; } #header, #left-panel, #ribbon, #content, .modal, .page-footer { display: none; } #receiptsprintscreenwrapper { min-height: 550px; height: auto; width: 95%; background-color: #fff; display: block !important; float: left; margin-left: 25px; padding: 20px; } #staticreceiptsinfo { position: relative; top: -20px } #receiptsrightinfo { padding-left: 40px; } #firstbottomreceiptssection { margin-top: 5px; padding-left: 15px; padding-right: 15px; } .receiptslogo { width: 100%; } .extrasmalltext { font-size: 10px; margin-left: 15px; } .extralargetext { font-size: 15px !important; margin-right: 15px; } }
=================================================
in html file file include have specified this.
<link rel="stylesheet" media="all" href="assets/css/print.css"/>
earlier media="print" but, since didn't give me result have changed media="all".
can please give me hint regarding print issue ? whole layout not showing when trying print preview.
thanks....
Comments
Post a Comment